From: Stuart Clarke Date: 2010-10-02T06:02:41+09:00 Subject: Re: Microsoft Word metadata extraction query 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 David, That is excellent, thanks. My next issue is getting the gem installed on JRuby. It keeps failing to find the gem in the repository, I have had a search around to download the compiled gem but I have not been able to find it. Any ideas? Many thanks -- Posted via http://www.ruby-forum.com/.