BrowserFormWebPart.FormLocation Property

Gets or sets the location of the InfoPath form to display in the Web part.

Namespace:  Microsoft.Office.InfoPath.Server.Controls.WebUI
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

Syntax

'Declaration
<ManagedLinkAttribute(Fixup := True)> _
Public Property FormLocation As String
    Get
    Set
'Usage
Dim instance As BrowserFormWebPart
Dim value As String

value = instance.FormLocation

instance.FormLocation = value
[ManagedLinkAttribute(Fixup = true)]
public string FormLocation { get; set; }

Property Value

Type: System.String
The URL of the document library or list that contains the form to display.

Remarks

The URL specified must have a valid InfoPath form template associated with it. If the URL specifies a document library, that document library must have a form template deployed and activated. If the URL specifies a list, the form associated with the list must have been customized in Microsoft InfoPath 2010. To customize the form for a list in InfoPath 2010, navigate to the list, click the List tab under List Tools, and then click Customize Form in the Settings group.

If you specify this value manually using a program such as Microsoft SharePoint Designer 2010, if you specify a URL which does not point directly to an .xsn or .xml file, you must also set the ContentTypeId property for the Web Part to work.

See Also

Reference

BrowserFormWebPart Class

BrowserFormWebPart Members

Microsoft.Office.InfoPath.Server.Controls.WebUI Namespace