Share via


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.String

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

  • customAppDomain
    Type: System.AppDomain

    The AppDomain object that represents the application domain in which the application hosting the control is executing.

  • userInputParameters
    Type: System.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.

See Also

Reference

FormControl Class

FormControl Members

NewFromFormTemplate Overload

Microsoft.Office.InfoPath Namespace