Edit

Share via


XDocuments3.Open(Object, Int32) Method

Definition

Opens the specified Microsoft InfoPath form.

public:
 Microsoft::Office::Interop::InfoPath::SemiTrust::XDocument ^ Open(System::Object ^ varURI, int dwBehavior);
public Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument Open (object varURI, int dwBehavior);
abstract member Open : obj * int -> Microsoft.Office.Interop.InfoPath.SemiTrust.XDocument
Public Function Open (varURI As Object, dwBehavior As Integer) As XDocument

Parameters

varURI
Object

Specifies the Uniform Resource Identifier (URI) of a form.

dwBehavior
Int32

Default value is 1. A value that specifies how the form should be opened. The values are based on the XdDocumentVersionMode enumeration.

Returns

An XDocument that represents the specified form.

Implements

Remarks

The Open method can only be used to open a form; it cannot be used to open a form template. To create a form from a form template, use the NewFromSolution(Object) method. To create a form based on an existing form, use the New(Object, Int32) method.

When you use the Open method, the specified form opens in InfoPath and is ready to be filled out.

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Applies to