_ExternalApplication2.NewFromSolutionWithInputParameters Method
Creates a new form using the specified form template with the specified form template and input parameters.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
Sub NewFromSolutionWithInputParameters ( _
bstrSolutionURI As String, _
bstrInputParameters As String _
)
'Usage
Dim instance As _ExternalApplication2
Dim bstrSolutionURI As String
Dim bstrInputParameters As String
instance.NewFromSolutionWithInputParameters(bstrSolutionURI, _
bstrInputParameters)
void NewFromSolutionWithInputParameters(
string bstrSolutionURI,
string bstrInputParameters
)
Parameters
bstrSolutionURI
Type: System.StringThe Uniform Resource Identifier (URI) of the form template on which to base the new form.
bstrInputParameters
Type: System.StringOne 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 bstrSolutionURI parameter must contain a OnLoad event handler that uses the InputParameters property of the _XDocument4 class to retrieve the input parameter values, and then do something with those values. For an example of how to do this, see the InputParameters property topic.