From: "(r.*n){2}" Date: 2010-10-01T10:06:40+09:00 Subject: Re: Microsoft Word metadata extraction query On Sep 30, 8:33 pm, David Mullet wrote: > Stuart Clarke wrote: > > Hey all, > > > Is anyone aware of a library to identify the use of track changes in > > Microsoft Word documents? I basically and looking for something to scan > > the file and say 'Track Changes - Y/N' > > > Many thanks in advance > > Not sure if this can be done by "scanning the file". > > It can be done via Win32OLE, by checking the Document object's > TrackRevisions property. > > require 'win32ole' > word = WIN32OLE.new('Word.Application') > doc = word.Documents.Open('c:\stuff.doc') > is_tracking = doc.TrackRevisions > > That's an abbreviated example. Let me know if this would help and you > need more details. > > David > > http://rubyonwindows.blogspot.com/search/label/word > -- > Posted viahttp://www.ruby-forum.com/. Try to run strings (see man strings) on the word doc and see if there are any clues.