Welcome to MSDN Blogs Sign in | Join | Help

How to diff Word documents

John Lawrence responded to someone's question about how to diff MS Word documents, and I thought the answer would help a few more folks.

Team Foundation enables you to specify different diff and merge tools for different file types.

We don’t have a built in compare tool for .doc files but I did a quick search and found quite a few available for download (e.g. http://www.documentlocator.com/download/difftools.htm). I don’t know if we have any specific recommendations.

I installed DiffDoc (because it was free… http://www.softinterface.com/MD/MD.htm) and configured it to be my diff tool for .doc files:

  1. Navigate to Tools->Options->Source Control->Visual Studio Team Foundation
  2. Click the Configure User Tools button
  3. In the dialog that pops up, click Add
  4. Enter ‘.doc’ (no apostrophes) in the Extension field to indicate you’re adding a comparison tool for .doc files
  5. For the Command field, click “…” and navigate to your diff tool exe (in my case “C:\Program Files\Softinterface, Inc\DiffDoc\DiffDoc.exe”)
  6. Then enter the command line parameters to drive your specific diff tool. %1 expands to be the original file, %2 expands to the new one. In this case, enter "/M%1 /S%2" in the Arguments text box (without the quotation marks).

That should do it – next time you try and view a diff of .doc files, it will launch this tool and you should be able to compare them.

Published Monday, November 28, 2005 1:55 PM by buckh

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# TFS Version Control post summary

Now that the RC is out, I thought I'd post a summary with links to version control posts from the last...
Wednesday, February 08, 2006 11:14 PM by Buck Hodges

# re: How to diff Word documents

How can I compare two word document files and show changes in another file like in VSS style ?

Thursday, June 25, 2009 11:23 AM by Uday Kadam

# re: How to diff Word documents

Uday, I'm not aware of a tool that would do that.

Buck

Wednesday, July 08, 2009 9:07 PM by buckh

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker