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.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.
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.