We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save as html lost revision

Simple compare 2 doc lost revision in html version, but have in docx.

Document doc = new Document("..\\test.docx");
Document doc2 = new Document("..\\v2test.docx");
doc.acceptAllRevisions();
doc2.acceptAllRevisions();
doc.compare(doc2, "3", new Date());
doc.save("..\\out.docx");
doc.save("..\\out.html", SaveFormat.HTML);

test data and my result : test_data.zip (57.2 KB)
sreenshots http://joxi.ru/L21ppzxfRexKVm

@vhostt Aspose.Words does not support export of formatting revisions to HTML. Currently only delete/insert revisions are supported upon HTML export. Also it is required to note that there is no built-in way to output format revisions to HTML.

ok understand

1 Like