Category: | Feature request |
Priority: | Normal |
Status: | Acknowledged |
Project: | Severity: | Feature |
Resolution: | Reopened |
|
Component: | Reproducibility: | Always |
Assigned to: |
Excuse my bad english.
We (and i think others) often use the "Page x of xx" pattern for our reports. Its always a litte bit tricky to place this pattern with the PAGE_NUMBER field. (Dispite the confusing with PAGE_COUNT for new users, who think PAGE_COUNT holds the total number of pages)
You need to place two fields with different computation. But this is difficult with localization.
It would be easiert to place a textfield like "Seite "+$V{CURRENT_PAGE}+" von "+$V{TOTAL_PAGES}
There is a other "trick" that can be used to place such a textfield:
https://community.jaspersoft.com/questions/521769/using-pagenumber-pagec...
But it is always a "trick".
So, I would suggest to provide the built-in variables CURRENT_PAGE and TOTAL_PAGES.
4 Comments:
Already available since 6.0.0 as MASTER_CURRENT_PAGE and MASTER_TOTAL_PAGES. Note that you'll need to use evaluationTime="Master" for the text fields.
A few more details at http://jasperreports.sourceforge.net/sample.reference/book/index.html
Regards,
Lucian
Many thanks for the answer
In your reference link evalutionTime="Auto" is also mentioned but it is not working.
You're right, it doesn't work with evaluationTime="Auto". That's something we'll need to look into.