Counter on pages created by one record

Posted by: Edwin van Hierde

Counter on pages created by one record - 03/13/19 03:32 AM

Hi,

I'm printing a cover sheet with shipping label and after this a number of forms. This number is depending on a value in the record called "Invoice amount".

I want to have a page counter on the forms and tried this: COUNTER(1, VAL([Invoice amount]),1,6,True), but then I only get the record number and not the number of PDF pages, so for record 1 I get 000001 and 2, 000002.
I also tried this: PAGE_NR(True) -1, because this should reset after each record, but this is also not working in the generated PDF.

Somebody an idea of how to solve this?

Kind Regards,
Edwin