InfoPathEditor.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 _
)
'Usage
Dim instance As InfoPathEditor
Dim bstrURLXSN As String
Dim punkStream As Object
Dim dwBehavior As Integer

instance.NewFromSolutionWithData(bstrURLXSN, _
    punkStream, dwBehavior)
void NewFromSolutionWithData(
    string bstrURLXSN,
    Object punkStream,
    int dwBehavior
)

Parameters

  • bstrURLXSN
    Type: System.String

    The path or URL to the form template file (.xsn).

  • punkStream
    Type: System.Object

    The file stream (System.IO.IStream) containing the XML data used to populate the new form.

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 Application and the "The InfoPath Editor Hosted As a Control" section of What's New for InfoPath Developers.

See also

Reference

InfoPathEditor interface

InfoPathEditor members

Microsoft.Office.Interop.InfoPath namespace