Dear Team,
We need solution for if Track Changes is enabled in word document mean we need to Accept All Changes in document. Kindly give solution for this scenario.
Sample Document : sample.zip (25.0 KB)
Thank you.
Dear Team,
We need solution for if Track Changes is enabled in word document mean we need to Accept All Changes in document. Kindly give solution for this scenario.
Sample Document : sample.zip (25.0 KB)
Thank you.
Thanks for your inquiry. Please use the following code example to achieve your requirement.
var document = new Document(MyDir + "YMPEV_AP141002_Output.docx");
if (document.TrackRevisions)
document.AcceptAllRevisions();
document.Save(MyDir + "out.docx");
Its working fine. Thanks for your support.
Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.