Word 2013 can't compare readonly files

Posted by Moshe Katz on Super User See other posts from Super User or by Moshe Katz
Published on 2012-12-19T22:38:38Z Indexed on 2012/12/19 23:05 UTC
Read the original article Hit count: 383

I am using Tortoise SVN to work with a repository that contains some documentation saved as Word documents. On my old computer, with Office 2010, I was able to compare with previous revisions. Tortoise would open Word in compare view so I could see the differences between the files.

I have installed Office 2013 (final version from Technet, not the preview version) on my new laptop for testing and now I can no longer compare Word Documents. Tortoise pops up a generic error that it was unable to compare the two files.

Tortoise uses a JScript file to interface with Word, so I ran that file through a debugger and found that the actual error is:

The Compare method or property is not available because this command is not available for reading.

Some Googling followed by some testing revealed that the error is caused by the first file opened (in this case, the previous version) being opened as Read-Only. If I change the JScript code to open in normal mode, and I find the file on the system and un-check the "Read Only" property (if necessary), then the comparison opens as expected.

I was unable to find any documentation about this change to Word on any Microsoft site.

Does anyone know why this has been changed, and if it is intentional and not a bug, what the benefit is of requiring the file to be writable in order to compare it with another?


Note: This is tagged word-2013-preview but it is actually for the release version of Word that is available on MSDN and Technet. I do not have enough rep. on this site to create new tags (yet).

© Super User or respective owner

Related posts about microsoft-word

Related posts about tortoise-svn