InfoPathEditorWithAppDomain.NewFromSolutionWithData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new form based on the specified form template and the data contained in an XML stream.
public:
void NewFromSolutionWithData(System::String ^ bstrURLXSN, System::Object ^ punkStream, int dwBehavior, System::Object ^ punkAppDomain, System::String ^ bstrInputParameters);
public void NewFromSolutionWithData (string bstrURLXSN, object punkStream, int dwBehavior, object punkAppDomain, string bstrInputParameters);
abstract member NewFromSolutionWithData : string * obj * int * obj * string -> unit
Public Sub NewFromSolutionWithData (bstrURLXSN As String, punkStream As Object, dwBehavior As Integer, punkAppDomain As Object, bstrInputParameters As String)
Parameters
- bstrURLXSN
- String
The path or URL to the form template file (.xsn).
- punkStream
- Object
The file stream (System.IO.IStream) containing the XML data used to populate the new form.
- dwBehavior
- Int32
A XdDocumentVersionMode value that specifies how the form should be opened.
- bstrInputParameters
- String
One 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.