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