Document.Merge Method
Merges the changes marked with revision marks from one document to another.
Namespace: Microsoft.Office.Tools.Word
Assembly: 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.String
The 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.