How to deploy InfoPath form in SharePoint as browser enabled Form


In this article I am describing about how Taking Advantage of XML Form Web Part in SharePoint and office InfoPath form which is an XML form Builder. This is the second part of my article named Connect InfoPath form to web service and deploy it to SharePoint

In a Form Library click on the Settings menu and choose Form Library Settings

Infpath1.gif

In the General Settings section, click on the Advanced Settings

Infpath2.gif

Publish InfoPath Form in SharePoint Form Library

To publish InfoPath Form in to SharePoint Form Library follow the steps below

Select File->Publish, it will open publishing Wizard

Infpath3.gif

Select where we want to publish Form and click on Next (Sine we are going to deploy in SharePoint Form library please select To a SharePoint server with or without InfoPath Forms Services)

Infpath4.gif

Enter the location of SharePoint site where we are going to Publish form

Infpath5.gif

Select enable this form to be filled out by using browser to publish the form in browser

Infpath6.gif

Save the form in your local drive .since that saved template should be uploaded SharePoint Administrator and to be activate for this particular site

Infpath7.gif

Click on publish so that form Template will be deployed in SharePoint Form Library

Infpath8.gif

Upload InfoPath Form Template in SharePoint

InfoPath With managed code should be verified and uploaded in SharePoint Application Management and should be activated for the Form published Site collection.

Navigate to Central Administration > Application Management

Infpath9.gif

Select Upload form template under InfoPath form Services

Infpath10.gif

Browse to the Form template and click on verify. Since it helps in detecting error in template
Click on the Template and activate the form for the particular site collection on which you want to publish it.

XML Form Web Part

To enable XMLformView Web Part to a Site Collection add the below line to the web config file of the particular Site collection

<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" AllowRemoteDesigner="True"/>

Select Site action ->Site Settings

Infpath11.gif

To populate XMLFormWebPart to web part gallery

Infpath12.gif


Click New

Check Microsoft.Office.InfoPath.Server.Controls.AMLFormView and click on Populate Gallery

Infpath13.gif

Go to Edit Mode ->Add Web Part-> select XMLFormView and clilck on Add to populate XMLformView in the Page.