Share via


InfoPathEditorWithAppDomain.NewFromSolution method

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

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Sub NewFromSolution ( _
    bstrSolutionURI As String, _
    punkAppDomain As Object, _
    bstrInputParameters As String _
)
'Usage
Dim instance As InfoPathEditorWithAppDomain
Dim bstrSolutionURI As String
Dim punkAppDomain As Object
Dim bstrInputParameters As String

instance.NewFromSolution(bstrSolutionURI, _
    punkAppDomain, bstrInputParameters)
void NewFromSolution(
    string bstrSolutionURI,
    Object punkAppDomain,
    string bstrInputParameters
)

Parameters

  • bstrSolutionURI
    Type: System.String

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

  • punkAppDomain
    Type: System.Object

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

  • bstrInputParameters
    Type: System.String

    One or more name/value pairs separated by the ampersand (&) character.

Remarks

To use the input parameters passed to the bstrInputParameters parameter, the form specified in the bstrURL parameter must contain a OnLoad event handler that uses the InputParameters property of the LoadingEventArgs class to retrieve the input parameter values, and then do something with those values.

See also

Reference

InfoPathEditorWithAppDomain interface

InfoPathEditorWithAppDomain members

Microsoft.Office.Interop.InfoPath namespace