Hi all you experts,
I would like to print some fields only on the last page of the report but without placing it into the last page footer. I tried to place a constraint in the options field "print when expression" but I am missing the variable expression for the last page.
The page number is $V{page_number} with the evalution time Now or Report but how do I fit the report evalution time into a newly created variable(and with which expression?)
I would like to print my expression if: current page number == last page number
Thanks for your help.
3 Answers:
Figured it out.
Create a Variable - CURRENT_PAGE or whatever name, and set "Reset Type" to Page. Leave everything else at the defaults.
Then Add your Text field or image to the layout, and put this in your Textfield Expression or Image Expression:
($V{CURRENT_PAGE}.equals($V{PAGE_NUMBER}) ? "The last Page" : "Not last page"
But you have to set "Evaluation Time" to Auto on your textfield or image.