jobsta/reportbro-lib

Parameters page_number and page_count do not work outside header or footer

Closed this issue · 1 comments

I need to print the number of pages (page_count) on one of the document pages (and not in the header or the footer).

But if i put them there, i just receive "0". And they work just fine if i put them on the document's header or footer.

I think, they should work the same way in the whole document, not just header and footer.

alhman commented

That's by design. During rendering of the content band the page_number and page_count is unknown as rendering has an effect on the actual values. The page parameters are therefor only available in header/footer which are rendered after content.