Modifica

Condividi tramite


InfoPathEditorWithAppDomain.NewFromSolutionWithData Method

Definition

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.

punkAppDomain
Object

An AppDomain

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.

Applies to