Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

XmlForm.MergeForm method (String)

Merges the current form with the form specified by path or URL.

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
public abstract void MergeForm(
	string fileUrl
)

Parameters

fileUrl
Type: System.String

The path or URL to the form file to merge.

ExceptionCondition
ArgumentNullException

The value passed for fileUrl is a null reference (Nothing in Visual Basic).

ArgumentException

The value passed for fileUrl is "" or is invalid.

InvalidOperationException

The MergeForm method was called from the Loading event.

The MergeForm method is equivalent to using the Merge Forms command of the InfoPath form editor. The value passed as the fileUrl parameter must be a full path or URL, and must include the filename with an .xml file extension.

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.

This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.

In the following code example, the MergeForm method of the XmlForm class is used to merge a form with the current form.

this.MergeForm("C:\\MyForms\\SomeOtherForm.xml");
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.