To have total pages, you can do two options:
- On view using $V{PAGE_NUMER} flexible using evaluation time: current page with “Now”, total page with “Report”
- Create a variable for total page
- Name: TOTAL_PAGES (or any other)
- Variable class: Integer
- Calculation: highest
- Reset type: report
- Increment type: page
- Variable expression: ${PAGE_NUMBER}
Then you can use on report in the field.
Known Issues:
- When using with Print Expression, it won’t do pre-calculate