Edit

Share via


FormControl.NewFromFormTemplate Method

Definition

Overloads

NewFromFormTemplate(String, Stream, XmlFormOpenMode, AppDomain, String)

Creates a new form based on the specified form template and the data contained in an XML stream.

NewFromFormTemplate(String, Stream, XmlFormOpenMode)

Creates a new form based on the specified form template (.xsn) and the data contained in an XML stream.

NewFromFormTemplate(String, AppDomain, String)

Creates a new form based on a form template (.xsn) file.

NewFromFormTemplate(String)

Creates a new form based on a form template (.xsn) file.

NewFromFormTemplate(String, Stream, XmlFormOpenMode, AppDomain, String)

Creates a new form based on the specified form template and the data contained in an XML stream.

public:
 virtual void NewFromFormTemplate(System::String ^ formTemplateLocation, System::IO::Stream ^ xmlDataStream, Microsoft::Office::InfoPath::XmlFormOpenMode behavior, AppDomain ^ customAppDomain, System::String ^ inputParameters);
public virtual void NewFromFormTemplate (string formTemplateLocation, System.IO.Stream xmlDataStream, Microsoft.Office.InfoPath.XmlFormOpenMode behavior, AppDomain customAppDomain, string inputParameters);
abstract member NewFromFormTemplate : string * System.IO.Stream * Microsoft.Office.InfoPath.XmlFormOpenMode * AppDomain * string -> unit
override this.NewFromFormTemplate : string * System.IO.Stream * Microsoft.Office.InfoPath.XmlFormOpenMode * AppDomain * string -> unit
Public Overridable Sub NewFromFormTemplate (formTemplateLocation As String, xmlDataStream As Stream, behavior As XmlFormOpenMode, customAppDomain As AppDomain, inputParameters As String)

Parameters

formTemplateLocation
String

The path or URL to the form template file (.xsn).

xmlDataStream
Stream

The file stream (Stream

behavior
XmlFormOpenMode

A XmlFormOpenMode value that specifies how the form should be opened.

customAppDomain
AppDomain

The AppDomain

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

NewFromFormTemplate(String, Stream, XmlFormOpenMode)

Creates a new form based on the specified form template (.xsn) and the data contained in an XML stream.

public:
 virtual void NewFromFormTemplate(System::String ^ formTemplateLocation, System::IO::Stream ^ xmlDataStream, Microsoft::Office::InfoPath::XmlFormOpenMode behavior);
public virtual void NewFromFormTemplate (string formTemplateLocation, System.IO.Stream xmlDataStream, Microsoft.Office.InfoPath.XmlFormOpenMode behavior);
abstract member NewFromFormTemplate : string * System.IO.Stream * Microsoft.Office.InfoPath.XmlFormOpenMode -> unit
override this.NewFromFormTemplate : string * System.IO.Stream * Microsoft.Office.InfoPath.XmlFormOpenMode -> unit
Public Overridable Sub NewFromFormTemplate (formTemplateLocation As String, xmlDataStream As Stream, behavior As XmlFormOpenMode)

Parameters

formTemplateLocation
String

The path or URL to the form template file (.xsn).

xmlDataStream
Stream

The file stream (Stream

behavior
XmlFormOpenMode

An XmlFormOpenMode value that specifies how the form should be opened.

Remarks

For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application

Applies to

NewFromFormTemplate(String, AppDomain, String)

Creates a new form based on a form template (.xsn) file.

public:
 virtual void NewFromFormTemplate(System::String ^ formTemplateLocation, AppDomain ^ customAppDomain, System::String ^ userInputParameters);
public virtual void NewFromFormTemplate (string formTemplateLocation, AppDomain customAppDomain, string userInputParameters);
abstract member NewFromFormTemplate : string * AppDomain * string -> unit
override this.NewFromFormTemplate : string * AppDomain * string -> unit
Public Overridable Sub NewFromFormTemplate (formTemplateLocation As String, customAppDomain As AppDomain, userInputParameters As String)

Parameters

formTemplateLocation
String

The path or URL to the form template (.xsn) file.

customAppDomain
AppDomain

The AppDomain

userInputParameters
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

NewFromFormTemplate(String)

Creates a new form based on a form template (.xsn) file.

public:
 virtual void NewFromFormTemplate(System::String ^ formTemplateLocation);
public virtual void NewFromFormTemplate (string formTemplateLocation);
abstract member NewFromFormTemplate : string -> unit
override this.NewFromFormTemplate : string -> unit
Public Overridable Sub NewFromFormTemplate (formTemplateLocation As String)

Parameters

formTemplateLocation
String

The path or URL to the form template (.xsn) file.

Remarks

For more information about the FormControl object, see Hosting the InfoPath Form Editing Environment in a Custom Windows Form Application

Applies to