Strange behavior of Document.AcceptAllRevisions()


Result of Document.AcceptAllRevisions() differs from result of “Accept all changes in document” in MS Word. AcceptAllRevisions() removes “Paragraph 2” text (see attached acceptrev.docx), but, as I understand, it shouldn’t do it.

using (var stream = new FileStream(@“acceptrev.docx”, FileMode.Open))
var document = new Document(stream);

document.Save(@“result.docx”, SaveFormat.Docx);

Aspose.Words version is used.

Hi Dmitry,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 16.10.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-14304. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-14304) have been fixed in this Aspose.Words for .NET 16.11.0 update and this Aspose.Words for Java 16.11.0 update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.