Track Changes in Documents
The AcceptAllRevisions method allows you to “accept” all tracked changes in the document. Calling this method is similar to selecting “Accept All Changes” in Microsoft Word. Aspose.Words will actually delete fragments marked as “delete revisions”, retain fragments marked as “insert revisions”, and apply formatting changes. Note that comments are not affected during this operation.
The following code example shows how to accept all revisions in a document:
Document doc = new Document(dataDir + "trackDoc.doc"); doc.acceptAllRevisions(); doc.save(dataDir + "AsposeAcceptChanges.doc", SaveFormat.DOC);