How to Deploy an InfoPath 2007 Form with Managed Code to a Browser Enabled Sharepoint Document Library

InfoPath forms can be deployed to a Sharepoint document library, and assuming that the form template has been developed to be browser compatible, the form can be opened in a browser client (either when the user’s machine doesn’t have the InfoPath client or when the Sharepoint document library is configured to open forms by browser only).
Such form templates can usually be published directly to a Sharepoint document library without Administrator intervention, however, when the form template contains managed code the form cannot be published directly to the Sharepoint document library, but has to be first Approved by the Sharepoint Administrator.
The Administrator has to approve the template, upload it and then activate it against 1 or more site collections.
The process begins be publishing the form template as usual, at the screen shown below, select “Enable this form to be filled out using a Browser” and select “Administrator Approved form template”

Continue the publish procedure as normal, except that you will be publishing to a network share (or other location) accessible to the Sharepoint Administrator who can then review the form template and approve it.
The Sharepoint Administrator must then;Upload the template to SharepointActivate it against site collection(s)Associate the form template with a form library
To Upload the template;Go to Central Administration for your farmSelect Application Management, from there select InfoPath Forms Services, and then choose Manage Form Templates.The Form Template library is opened, which is where administrator approved templates for the farm are stored.Select “Upload Form Template”. Locate and select the saved template file and click the Verify button. You will be shown any errors or warnings related to your template (review them if necessary), and click OK.Locate your form template again. The Upgrade options exist for you to choose how to upgrade the form template if it already exists.Click the Upload button to perform the form template upload. It is now available as a Feature to be activated against any site collection in the farm.
To Activate the form template on a Site Collection;You can activate the form template feature from the Manage Form Templates page of Central Administration, the same page where we just uploaded the template. From the templates context menu, choose Activate to a Site Collection.In the Location section of the page, choose the relevant Site Collection and click the OK button.
Note, that you may have to change the Web Application location in order to find the right site collection.
To Associate the Form Template with a Form Library;Create a new form library or use an existing oneSelect the library’s advanced settings page and configure the library to allow content-type managementOptionally, you might want to select the “Display as Web-Page” settingClick OKFrom the Content Types section, select “Add from existing site content types”, from the list box displayed locate your form template, click Add then click OK.
If you return to your form library and select New from the library menu, you should see an option there for your form template. If you choose this new option, the form template should be opened in the browser.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s