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

Free Support Forum - aspose.com

Continue List Numbering when Merging Documents

I am trying to merge two documents having number lists. However the merged document does not continue the numbering. I have attached a sample solution for your reference.
ConsoleAppV1.zip (182.2 KB)

@ottap The behavior is expected. The ImportFormatOptions.MergePastedLists options works only if there is a list at the location where the document is inserted or appended. But in your documents the lists are in tables. So the document inserting location is the last paragraph, that is not a list item, the same as the inserted table (which actually cannot be a a list item).
You can try applying the numbering through the styles, in this case, if you use ImportFormatMode.UseDestinationStyles and in the source document styles names will be the same as style names in the destination document, the numbering should be continued.