InfoPathEditor.NewFromSolutionWithData Method
InfoPath Developer Reference |
Creates a new form based on the specified form template and the data contained in an XML stream.
Version Information
Version Added: InfoPath 2007
Syntax
expression.NewFromSolutionWithData(bstrURLXSN, punkStream, dwBehavior)
expression An expression that returns an InfoPathEditor object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
bstrURLXSN | Required | String | The path or URL to the form template file (.xsn). |
punkStream | Required | [UNKNOWN] | The stream containing an the XML data used to populate the new form. |
dwBehavior | Required | Long | Default value is 1. A value that specifies how the form should be opened. The values are based on the XdDocumentVersionMode enumeration. |
Return Value
[HRESULT]
Remarks
The NewFromSolutionWithData method of the InfoPathEditor object is not intended to be used in custom form code. It is available for use when the InfoPathEditor object is hosted in a custom COM-based application. For more information, see Hosting InfoPath as an XML Editor in Another Application and What's New for InfoPath Developers.
The XML document specified in the
punkStream
does not need to have been created by InfoPath. It can be supplied either as a URI or as an XMLDOMNode.
This object or member is used for extending the InfoPath application and is not intended to be used directly from your form code.
See Also