FormControl.Open Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Open(Stream) |
Opens a form file (.xml) from a file stream (StreamFormControl object. |
Open(String) |
Opens a form file (.xml) and loads it into the FormControl object. |
Open(Stream, AppDomain, String) |
Opens a form file (.xml) from a file stream and loads it into the FormControl object. |
Open(String, AppDomain, String) |
Opens a form template file (.xsn) and loads it into the FormControl object. |
Open(Stream)
Opens a form file (.xml) from a file stream (StreamFormControl object.
public:
virtual void Open(System::IO::Stream ^ xmlDataStream);
public virtual void Open (System.IO.Stream xmlDataStream);
abstract member Open : System.IO.Stream -> unit
override this.Open : System.IO.Stream -> unit
Public Overridable Sub Open (xmlDataStream As Stream)
Parameters
- xmlDataStream
- Stream
The file stream (System.IO.Stream) containing the form file (.xml).
Remarks
For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application
Applies to
Open(String)
Opens a form file (.xml) and loads it into the FormControl object.
public:
virtual void Open(System::String ^ formLocation);
public virtual void Open (string formLocation);
abstract member Open : string -> unit
override this.Open : string -> unit
Public Overridable Sub Open (formLocation As String)
Parameters
- formLocation
- String
The path or URL to the form file (.xml).
Remarks
The Open(System.String) method does not allow you to specify a form template file (.xsn). The form file must contain processing instructions (href and name attributes) that reference a valid form template file for the Load method to succeed. If this is not possible, the NewFromFormTemplate method can be used if you have a .xsn file and a suitably structured XML file, but the XML file does not have processing instruction references that specify the .xsn file. Or you can use the Open(Stream) method to load XML from a Stream
For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application
Applies to
Open(Stream, AppDomain, String)
Opens a form file (.xml) from a file stream and loads it into the FormControl object.
public:
virtual void Open(System::IO::Stream ^ xmlDataStream, AppDomain ^ customAppDomain, System::String ^ inputParameters);
public virtual void Open (System.IO.Stream xmlDataStream, AppDomain customAppDomain, string inputParameters);
abstract member Open : System.IO.Stream * AppDomain * string -> unit
override this.Open : System.IO.Stream * AppDomain * string -> unit
Public Overridable Sub Open (xmlDataStream As Stream, customAppDomain As AppDomain, inputParameters As String)
Parameters
- inputParameters
- String
One or more name/value pairs separated by the ampersand (&) character.
Remarks
For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application
Applies to
Open(String, AppDomain, String)
Opens a form template file (.xsn) and loads it into the FormControl object.
public:
virtual void Open(System::String ^ formLocation, AppDomain ^ customAppDomain, System::String ^ inputParameters);
public virtual void Open (string formLocation, AppDomain customAppDomain, string inputParameters);
abstract member Open : string * AppDomain * string -> unit
override this.Open : string * AppDomain * string -> unit
Public Overridable Sub Open (formLocation As String, customAppDomain As AppDomain, inputParameters As String)
Parameters
- formLocation
- String
The path or URL to the form template file (.xsn).
- inputParameters
- String
One or more name/value pairs separated by the ampersand (&) character.
Remarks
For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application