Document.Merge Method
Merges the changes marked with revision marks from one document to another.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Sub Merge ( _
FileName As String, _
ByRef MergeTarget As Object, _
ByRef DetectFormatChanges As Object, _
ByRef UseFormattingFrom As Object, _
ByRef AddToRecentFiles As Object _
)
void Merge(
string FileName,
ref Object MergeTarget,
ref Object DetectFormatChanges,
ref Object UseFormattingFrom,
ref Object AddToRecentFiles
)
Parameters
FileName
Type: System.StringThe name of the new file that includes the merged contents.
MergeTarget
Type: System.Object%One of the WdMergeTarget values.
DetectFormatChanges
Type: System.Object%true to detect format changes in the document; otherwise, false.
UseFormattingFrom
Type: System.Object%One of the WdUseFormattingFrom values.
AddToRecentFiles
Type: System.Object%true to add to the recent files list; otherwise, false.
Remarks
Optional Parameters
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.