다음을 통해 공유


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.String

    The name of the new file that includes the merged contents.

  • DetectFormatChanges
    Type: System.Object%

    true to detect format changes in the document; otherwise, false.

  • 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

See Also

Reference

Document Interface

Microsoft.Office.Tools.Word Namespace