Share via


FormControl.NewFromFormTemplate method (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 _
)
'Usage
Dim instance As FormControl
Dim formTemplateLocation As String

instance.NewFromFormTemplate(formTemplateLocation)
public virtual void NewFromFormTemplate(
    string formTemplateLocation
)

Parameters

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

See also

Reference

FormControl class

FormControl members

NewFromFormTemplate overload

Microsoft.Office.InfoPath namespace