To install the web part you must:
1. Add an entry to a web application’s web.config file to mark the web part as “safe”.
2. Add the web part to the site’s web part gallery.
(The web application’s web.config file is located in a folder based on the web application’s port number typically off \Inetpub\wwwroot\wss\VirtualDirectories:)
3. Open the file web.config in an editor
4. Add the following line at the end of the existing element:
<SafeControl Assembly=”Microsoft.Office.InfoPath.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” Namespace=”Microsoft.Office.InfoPath.Server.Controls” TypeName=”XmlFormView” Safe=”True”/>
5. Save the web .config file.
The XmlFormView web part can now be added to the site’s gallery:
6. Navigate to the SharePoint site, e.g. http://moss2007 and select the Site Actions + Site Settings + Modify All Site Settings menu command.
7. Select the Web Parts link under the “Galleries” section.
8. Click the New button on the “Web Part Gallery” form.
9. Locate the entry for the XmlFormView web part and select the check box:
10. Click the Populate button at the top of the form.
1. Add an entry to a web application’s web.config file to mark the web part as “safe”.
2. Add the web part to the site’s web part gallery.
(The web application’s web.config file is located in a folder based on the web application’s port number typically off \Inetpub\wwwroot\wss\VirtualDirectories:)
3. Open the file web.config in an editor
4. Add the following line at the end of the existing
<SafeControl Assembly=”Microsoft.Office.InfoPath.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” Namespace=”Microsoft.Office.InfoPath.Server.Controls” TypeName=”XmlFormView” Safe=”True”/>
5. Save the web .config file.
The XmlFormView web part can now be added to the site’s gallery:
6. Navigate to the SharePoint site, e.g. http://moss2007 and select the Site Actions + Site Settings + Modify All Site Settings menu command.
7. Select the Web Parts link under the “Galleries” section.
8. Click the New button on the “Web Part Gallery” form.
9. Locate the entry for the XmlFormView web part and select the check box:
10. Click the Populate button at the top of the form.
Comments
Post a Comment