I can't display the Pages Numbers

Hello,
i am using Aspose.Words.dll version 4.0.4.0 to generate a word report from multiple word template, What i did is the following:
the report will load a word document and will delete all section from it(I considered this file as my basic file), then it will load the report data templates word documents one by one, render the data to each one of them using the merg mail fields. Then the report will copy the resulted sections in the data templates word files and place them in the basic file.

Ok, this is working fine, till I needed to insert the pages numbers to the resulted report.
I just couldn’t as the result report will have a lot of sections.
Can anyone help me on this? how can I achieve this?
Thanks a lot in advance.

Hi
Thanks for your request. I think that you can iterate through all sections and insert PAGE field into the header or footer. Please see the following link to learn how to work with headers/footers.
https://docs.aspose.com/words/net/working-with-headers-and-footers/
You can insert PAGE field using the following code:

builder.InsertField("Page", string.Empty);

Hope this helps. You can also attach your document here for testing.
Best regards.