Free Support Forum - aspose.com

Label list character replaced after comparsion

Hello!
I use Compare method in C#. After:

var doc = Compare(doc1, doc2);

My list label char ‘-’ has been replaced by a number list label 4.1.2
Example: http://take.ms/7dJS6

Thanks.

@Ar_Tee,

Thanks for your inquiry. Please ZIP and attach your input Word documents here for testing. We will investigate the issue on our side and provide you more information.

  1. 01.docx has a ‘-’ list;
  2. Compare(01, 02);
  3. 02.docx has corrupted list (the last item).

Attachment:DocsToCompare.zip (52.1 KB)
Thanks, Tahir!

@Ar_Tee,

Thanks for sharing the documents. We have tested the scenario using latest version of Aspose.Words for .NET 18.5 with following code example and have not found the shared issue. Please use Aspose.Words for .NET 18.5. We have attached the output DOCX with this post for your kind reference. 18.5.zip (23.2 KB)

Document doc1 = new Document(MyDir + "01.docx");
Document doc2 = new Document(MyDir + "02.docx");

doc1.AcceptAllRevisions();
doc2.AcceptAllRevisions();

doc1.Compare(doc2, "aspose", DateTime.Now); 
doc1.Save(MyDir + "18.5.docx");