I was wondering if this is possible? and if so how?
Thanks.
I was wondering if this is possible? and if so how?
Thanks.
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.
Here's a post by Eric White that shows how to remove comments: http://blogs.msdn.com/ericwhite/archive/2008/07/14/using-the-open-xml-sdk-and-linq-to-xml-to-remove-comments-from-an-open-xml-wordprocessing-document.aspx
In short here's the code that he published:
XName commentRangeStart = w + "commentRangeStart";
XName commentRangeEnd = w + "commentRangeEnd";
XName commentReference = w + "commentReference";
mainDocumentXDoc.Descendants()
.Where(x =>
x.Name == commentRangeStart ||
x.Name == commentRangeEnd ||
x.Name == commentReference)
.Remove();