_XDocument2.ImportDOM Method (Microsoft.Office.Interop.InfoPath.SemiTrust)
Imports the specified XML data into the current form.
This method is not CLS-compliant.
Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
void ImportDOM (
The XML data that is to be imported (merged) into the currently open form.
Using the object model to import a form programmatically is equivalent to performing a merge operation in the user interface..
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
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)
e.ReturnStatus = true;
Did you find this helpful?
( 1500 characters remaining)
Thank you for your feedback