I have managed to keep Microsoft Word’s track revisions property on. It is working fine.
How do I do the same for MS Excel 2007 and above? Follwing is my code for word (which is working fine) and next is for Excel that I am trying to execute.
-
Word:
Word.Application app = new Word.Application(); Word.Document tempDoc = app.Documents.Open(path); tempDoc.TrackRevisions = true; tempDoc.Protect(typ, ref missing, ref password, ref missing, ref missing); -
Excel:
Excel.Application ex_APP = new Excel.Application(); Workbook wrk = ex_APP.Workbooks.Open(path);
not able to go past this. When I try doing
wrk.
I don’t get property as trackReviosons.
This is the way I am currently doing it it seems to work really well
Then you get active workbook