Document.Compare Method (String, Object, Object, Object, Object, Object, Object, Object)


Displays revision marks that indicate where the document differs from another document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

void Compare(
	string Name,
	ref object AuthorName,
	ref object CompareTarget,
	ref object DetectFormatChanges,
	ref object IgnoreAllComparisonWarnings,
	ref object AddToRecentFiles,
	ref object RemovePersonalInformation,
	ref object RemoveDateAndTime


Type: System.String

The name of the document with which the document is compared.

Type: System.Object

The reviewer name associated with the differences generated by the comparison. If unspecified, the value defaults to the author name of the revised document or the string "Comparison" if no author information is present.

Type: System.Object

The target document for the comparison. Can be any T:Microsoft.Office.Interop.Word.WdCompareTarget value.

Type: System.Object

true (default) for the comparison to include detection of format changes.

Type: System.Object

true compares the documents without notifying a user of problems. The default value is false.

Type: System.Object

true adds the document to the list of recently used files on the File menu.

Type: System.Object

true if personal information should be removed from the specified document. The default value is false.

Type: System.Object

true removes date and time stamp information from tracked changes; false does not remove date and time stamp information from tracked changes.

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

Return to top