FormControl.NewFromFormTemplate Method (String, AppDomain, String)
Creates a new form based on a form template (.xsn) file.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath.FormControl (in Microsoft.Office.InfoPath.FormControl.dll)
Syntax
'Declaration
Public Overridable Sub NewFromFormTemplate ( _
formTemplateLocation As String, _
customAppDomain As AppDomain, _
userInputParameters As String _
)
'Usage
Dim instance As FormControl
Dim formTemplateLocation As String
Dim customAppDomain As AppDomain
Dim userInputParameters As String
instance.NewFromFormTemplate(formTemplateLocation, _
customAppDomain, userInputParameters)
public virtual void NewFromFormTemplate(
string formTemplateLocation,
AppDomain customAppDomain,
string userInputParameters
)
Parameters
formTemplateLocation
Type: System.StringThe path or URL to the form template (.xsn) file.
customAppDomain
Type: System.AppDomainThe AppDomain object that represents the application domain in which the application hosting the control is executing.
userInputParameters
Type: System.StringOne 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.