Hi Julian,
I've queried the WPTools5 (VCL) forum for wpsec_ResetPageNumber and found 4 posts. 2 of the posts end with the poster having an unanswered question.
I can't seem to get to the bottom of what it takes to get page numbers (both page and page count) to reset for each appended section. I've seen fragments of instructions saying to add wpsec_ResetPageNumber to the Section.Select after FastAppendText, to use 'sectionpages' instead of 'numpages' for field type (which this works, but only for page count, not page), and to add code to the OnCalcPageNr event.
I even simply modified your sample mailmerge project, Task MailM4. I added the page and page count to the editor and then modified the Section.Select line to be
Section.Select := [wpsec_ResetOutlineNums, wpsec_ResetPageNumber];
in the Button1Click event.
No luck.
I sent an email to a person who posted about wpsec_ResetPageNumber to see if they ever got it to work. Unfortunately, they told me they gave up.
I'd like to believe there's an easy way to accomplish this.
Please help. I understand you're busy, but if you could give a complete answer, even for the MailM4 task, it would be appreciated.