As an addition to this post: Managing the page numbers using AutoDefineNewPage()
has it’s quircks as I found that this function also gets called when a ResetProjectState()
is triggered. So if you do your own page numbering, it may get confused.
Interesting, my R&D on the problem also shows that there is a function which is triggered whenever a ResetProjectState()
occurs. This function is QueryFileNameForExportJob
. (Strangely enough, I cannot find any documentation on this function within the help file.)
I am now using this function to manage my custom page numbering (allowing me to e.g. specify an offset page number as well as implement continuous page numbering across ResetProjectState()
.
As a suggestion (unless I missed it): Having a native LL properties to set ContinuousPageNumbering
and StartPageNumber
would be a good addition to LL.