Wednesday, September 10, 2008, 07:41 - SharePoint
Posted by Administrator
The most bullet proof way to get a working schema is to create a webpart in an existing site, style and adjust it like you want it and export this webpart to your desktop.Posted by Administrator
Afterwards open the file in visual studio and copy paste this part in the
<Module Name="Default" Url="" Path="">
<File Url="default.aspx" NavBarHome="True">
<AllUsersWebPart WebPartZoneID="Right" WebPartOrder="1"> <WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Page Viewer Web Part</Title>
<FrameType>None</FrameType>
<Description>Use to display linked content, such as files, folders, or Web pages. The linked content is isolated from other content on the Web Part Page.</Description>
<IsIncluded>true</IsIncluded>
<ZoneID>Left</ZoneID>
<PartOrder>0</PartOrder>
<FrameState>Normal</FrameState>
<Height>600px</Height>
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge>/_layouts/images/mscntvwl.gif</PartImageLarge>
<IsIncludedFilter />
<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.PageViewerWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/PageViewer">_layouts/sdworxpolicies/Policy.aspx</ContentLink>
<SourceType xmlns="http://schemas.microsoft.com/WebPart/v2/PageViewer">URL</SourceType>
</WebPart>This part always work, takes you about 5 seconds.




( 3 / 662 )

Tom Van Gaever - Blog
Avatar






