tags:

views:

26

answers:

1

Hello,

I just found out this nice SVN option that would be very useful on our project, but yet again I'm having problems integrating it with word files, .docx to be exact.

I am using Tortoise client. If I create .txt file with $Rev$ content in it and put SVN property on it with Rev it works like a charm, in other words when I commit the change in the content of the file itself gets updated. When I use the same in .docx document, nothing happens. Has to be because it's not a textual file but binary?

Is there a way to integrate propset command for .docx files? People here don't have problems it seems, didn't work for me tho:( Click Ps: I also tried .doc files, same result.

Thanks for your replays.

+2  A: 

Since doc and docx files are actually binary files, not text, you can't use the svn properties to expand keywords. It might work for doc files but you could corrupt those files that way. It definitely won't work for docx files since those are basically zipped xml files, and in the zipped file the keyword isn't there anymore in plain text.

But you could try this.

Stefan
Yes, after few hours of search i was on my way of writing a macro myself until i found your solution somewhere else. It works, but will see if that is all i need. Anyway, my answer has been answered :) Thank you.
krizajB