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

Free Support Forum - aspose.com

Table Serial Number Issue

Serial number is not restarting with 1 After inserting file two times in doc.
So Can you please suggest that how can fix this issue as given below screen shot.

As we are using below code to insert file in doc.

 Document srcDoc = new Document();
 srcDoc = new Document('FilePath');
 builder.InsertDocument(srcDoc, ImportFormatMode.KeepSourceFormatting);


Can you provide the file please?

Hello @carlos.molina Sorry, I can not share document. Please suggest only one thing that how can restart number with 1 as we are using number list style. as given below screen shot. After adding one annex and number is ending with 11 and next annex start with 12. So how can start number with 1 in another annex.

@RiteshK10 It is difficult to tell for sure what the problem is without actual documents. However, please try ImportFormatOptions.KeepSourceNumbering.

@alexey.noskov Can you please suggest that how can use.

ImportFormatOptions.KeepSourceNumbering in aspose.version(

@RiteshK10 Unfortunately, 16.1 version does not have this option. It has been introduced in 19.4 version of Aspose.Words:

I would suggest you to update to the latest version of Aspose.Words. 16.1 version was released about 7 years ago and a lot of fixes and improvements have been made since then.