How to embed a Microsoft InfoPath 2007 form into a SharePoint 2007 page in eight easy steps

You can use the XML Form View Web Part to embed your InfoPath Forms into a SharePoint site page. This web part provides a neat way to capture form data, preserving your SharePoint site branding.

First things first, this web part needs to be added into your Web Part Gallery and then add and configure the web part’s settings to suit your individual needs.

1) Ensure you are on the right WSS IIS website folder. I run "inetmgr" from Start | Run, locate the web site, right click and open to sure.

2) Backing up your original Web.Config file is always recommended. Add the following safecontrol node of text into the web.config SafeControl section:

<SafeControl Assembly="Microsoft.Office.InfoPath.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Namespace="Microsoft.Office.InfoPath.Server.Controls" TypeName="*" Safe="True" />

Save and close your web.config

3) Then go to your SharePoint top level site. Click "Site Actions", "Settings, "Modify All Site Content". Click on the "Web Parts" hyperlink under the Galleries heading.

4) Click "New" locate the Microsoft.Office.InfoPath.Server.Controls.XmlFormView web part type name and check the tick box and click the "Populate Gallery" button.

5) When adding a webpart to the page, the part will now be available under the "Miscellaneous" section named "XMLFormView" by default.

6) Notice that occasioanly, the web part open on the page with "The Form has been Closed" message either in the webpart or it takes over the page. Click close.

7) Click "Edit" on the XML Form View web part and "Modify Shared Web Part".

clip_image001

You’ll find that under the "Data Binding", you’ll have a XsnLocation and SaveLocation.

To display your chosen form, point the XsnLocation to the URL of the InfoPath form that has been published to your SharePoint forms library. I recommend publishing your form to a seperate Form Library than the one you will allow submissions to. The URL would be http://servername/formname.xsn.

8) Apply and Ok and your web part is now live.

Advertisements

One thought on “How to embed a Microsoft InfoPath 2007 form into a SharePoint 2007 page in eight easy steps

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s