InfoPathEditor.NewFromSolutionWithData(String, Object, Int32) 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);
public void NewFromSolutionWithData (string bstrURLXSN, object punkStream, int dwBehavior);
abstract member NewFromSolutionWithData : string * obj * int -> unit
Public Sub NewFromSolutionWithData (bstrURLXSN As String, punkStream As Object, dwBehavior As Integer)

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.

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.

For more information about the InfoPathEditor and the FormControl objects , see the MSDN article Hosting the InfoPath Form Editing Environment in a Custom Windows Form ApplicationWhat's New for InfoPath Developers.

Applies to