Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically remove or hide comments/track changes in Word 2007?

Tags:

.net

ms-word

I was wondering if this is possible? And if so how?

like image 554
LB. Avatar asked Apr 12 '26 08:04

LB.


1 Answers

How about the following:

ActiveWindow.View.RevisionsView = wdRevisionsViewFinal
ActiveWindow.View.ShowRevisionsAndComments = False

This will show the Final document without markup.

Note: ActiveWindow is a property of the Word.Application class

EDIT:

This answer is using OLE Automation, on rereading your question this may not be what you're looking for, sorry.

like image 195
Patrick McDonald Avatar answered Apr 14 '26 23:04

Patrick McDonald



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!