Last modified: July 10, 2008
Applies to: SharePoint Foundation 2010
Opens the specified XML document or form for merging, or for handling multiple XML documents or forms, within its associated application, based on the specified instance of Internet Explorer.
An expression that returns an OpenXMLDocuments Control object.
An Object representing a pointer to the Internet Explorer instance that is calling the MergeDocuments2 method. Using a null value for this argument results in the method being executed on the primary Internet Explorer thread. As an alternative, you can use the MergeDocuments method if you do not need to pass an object with this argument.
A string that contains the URL of the location of the XML document or form to open for merging.
An Object representing a collection of XML documents or forms, expressed as variants, to be merged. Implementation includes the ability to pass a single variant, a collection of variants, or null. The Windows SharePoint Services form library's combine.aspx page passes NULL, a single XML document or form URL, or a collection of XML document or form URLs..
A string that contains the URL that specifies the default location for saving for the resulting XML document or form that has been merged.
The following example opens one or more XML documents or forms for merging, whose template and location for saving are specified by the values for the strTempLoc and strSaveLoc variables that are passed to the MergeDocuments2 method. The varDocuments argument of the MergeDocuments2 method accepts an object containing a collection of XML documents or forms that will be used during the merge. The example assumes the existence of a form named frmMergeDoc that has two input boxes, TempLocation and SaveLocation.