_XDocument3.ImportDOM Method
Imports the specified XML data into the current form.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)
Syntax
'Declaration
'Usage
Parameters
- pxDoc
The XML data that is to be imported (merged) into the currently open form.
Remarks
Using the object model to import a form programmatically is equivalent to performing a merge operation in the user interface.
Example
In the following example, the ImportDOM method of the XDocument object is used to import a form from the OnMergeRequest event:
public void OnMergeRequest(MergeEvent e)
{
thisXDocument.ImportDOM(e.DOM);
e.ReturnStatus = true;
}
See Also
Reference
_XDocument3 Interface
_XDocument3 Members
Microsoft.Office.Interop.InfoPath Namespace