Report Book Pagination¶
To ensure that the report book's pagination increments correctly, you need to modify a few variables.
To establish the report book pagination
-
In the Project Explorer, double-click to open Content_Page_One.jrxml.
-
On the Design tab, double-click the text field containing the expression " "+$V{PAGE_NUMBER}.
-
In the Expression Editor, and click Variables in the left panel.
-
Update the expression to the following:
"Page "+$V{MASTER_CURRENT_PAGE}+" of"
-
Click Finish.
-
Click to select the text field you just updated. Then in the Properties view, select Text Field.
-
Use the Evaluation Time drop-down menu to select Master.
-
Back in the Design tab, double-click the text field containing the expression "Page "+$V{PAGE_NUMBER}.
-
In the Expression Editor, and click Variables in the left panel.
-
Update the expression to the following:
" "+$V{MASTER_TOTAL_PAGES} -
Click Finish.
-
As you did in steps 6-7, use the Evaluation Time drop-down menu to select Master.
-
Save your project.