InfoPathEditorWithAppDomain.NewFromSolutionWithData method
Creates a new form based on the specified form template and the data contained in an XML stream.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub NewFromSolutionWithData ( _
bstrURLXSN As String, _
punkStream As Object, _
dwBehavior As Integer, _
punkAppDomain As Object, _
bstrInputParameters As String _
)
'Usage
Dim instance As InfoPathEditorWithAppDomain
Dim bstrURLXSN As String
Dim punkStream As Object
Dim dwBehavior As Integer
Dim punkAppDomain As Object
Dim bstrInputParameters As String
instance.NewFromSolutionWithData(bstrURLXSN, _
punkStream, dwBehavior, punkAppDomain, _
bstrInputParameters)
void NewFromSolutionWithData(
string bstrURLXSN,
Object punkStream,
int dwBehavior,
Object punkAppDomain,
string bstrInputParameters
)
Parameters
bstrURLXSN
Type: System.StringThe path or URL to the form template file (.xsn).
punkStream
Type: System.ObjectThe file stream (System.IO.IStream) containing the XML data used to populate the new form.
dwBehavior
Type: System.Int32A XdDocumentVersionMode value that specifies how the form should be opened.
punkAppDomain
Type: System.ObjectAn AppDomain object that represents the application domain in which the application hosting the control is executing.
bstrInputParameters
Type: System.StringOne or more name/value pairs separated by the ampersand (&) character.
Remarks
The XML document specified in the punkStream parameter does not need to have been created by InfoPath. It can be supplied either as a URI or as an XmlNode.
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