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

Free Support Forum - aspose.com

Page No's accross multiple section breaks

Hi, hope someone can help.

I've generating a report based on various templates, the output report is created by combining various documents into one.

There are section page breaks between each merged document. These need to be kept as eah page's formatting is different (i.e. margins and page layout).

Is there a way to add the standard Page No count to the footer of each page of the combined report, without the page index resetting on a new section?

Hi there,

Thanks for your inquiry.

It sounds like you need to set the PageSetup.RestartPageNumbering property for each Section in your document to false. You may also need to call Document.UpdatePageLayout() after this as well.

If this does not help could you please attach your documents here for testing and we will provide further feedback.


Just what I needed.

Thanks for your help.