Expand Minimize

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)

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.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft