Partilhar via


BrowserFormWebPart Class

Represents the implementation of the InfoPath Form Web Part.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.Office.InfoPath.Server.Controls.WebUI.BrowserFormWebPart

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

Syntax

'Declaration
Public NotInheritable Class BrowserFormWebPart _
    Inherits WebPart _
    Implements IWebPartRow, IListWebPart, IRelatedFormWebPart, IWebPartConnectionCompatibility,  _
    IWebPartPageComponentProvider
'Usage
Dim instance As BrowserFormWebPart
public sealed class BrowserFormWebPart : WebPart, 
    IWebPartRow, IListWebPart, IRelatedFormWebPart, IWebPartConnectionCompatibility, IWebPartPageComponentProvider

Remarks

The InfoPath Form Web Part can display a browser-enabled InfoPath form in a SharePoint Web Part page. The InfoPath form displayed in the Web Part can be the form for editing items in a SharePoint list that was customized in Microsoft InfoPath 2010, or a form based on a browser-enabled form template that was published to a document library.

Note

To customize the form for a SharePoint list in InfoPath 2010, navigate to the list, click the List tab under List Tools, and then click Customize Form in the Settings group.

To add an InfoPath Form Web Part to a Web Part page

  1. Create a new Web part page, or edit an existing Web part page.

  2. Click a zone in the page, and then click Add a Web Part.

  3. Under Categories, click Forms, click InfoPath Form Web Part, and then click Add.

  4. In the Web part, click the Click here to open the tool pane link, and then specify the list that has a customized form, or the document library that contains the published InfoPath form to display.

After specifying the list or document library that contains the form to display, you can specify other properties of the Web part in the tool pane, such as whether to display the form as read-only, or which view of the form to display by default.

The InfoPath Form Web Part also supports providing and consuming data with other Web Parts that are connected using the Connections command on the Web Part menu. In scenarios where the form displayed in the InfoPath Form Web Part can edit values is consumes from another Web Part, you must first open the form in the InfoPath designer, and promote the form fields required as input or output parameters as Web Part connection parameters by using the Publishing Wizard or the Forms Options dialog box. In scenarios where the form displayed in the InfoPath Form Web Part will provide values to another Web Part, in addition to promoting the form fields required as output parameters by using the Publishing Wizard or Form Options dialog box in the InfoPath designer. Additionally, to send updated data to the consuming Web Part, you must define a rule in the form that uses the Send data to Web Part action to send updated data to the consuming Web Part. For more information, see Working with the InfoPath Form Web Part.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

BrowserFormWebPart Members

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