Table Serial Number Issue

Hello,
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);

@RiteshK10,

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.

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

ImportFormatOptions.KeepSourceNumbering in aspose.version(16.1.0.0)

@RiteshK10 Unfortunately, 16.1 version does not have this option. It has been introduced in 19.4 version of Aspose.Words:
https://docs.aspose.com/words/net/aspose-words-for-net-19-4-release-notes/#added-a-new-importformatoptionskeepsourcenumbering-option-for-use-in-import-operations

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.