koral90 Posted October 16, 2014 Posted October 16, 2014 Hello,I know, that if I want to have something like "Page X of Y", i have to make two fields with "PAGE_NUMBER"- first with evaluation time "now" and second with evaluation time "report".But i would like to display this text only, when report has more than one page, how can i do that?Regards,Marcin K.
koral90 Posted October 16, 2014 Author Posted October 16, 2014 I have solution for simple reports:I have 2 variables:TOTAL_PAGE_NUMBER, which is Integer, with reset type: Report and variable expression: $V{PAGE_NUMBER}CURRENT_PAGE_NUMBER, which is Integer, with reset type: Page and variable expression: $V{PAGE_NUMBER}And i have textfield with text field expression: ($V{TOTAL_PAGE_NUMBER} != 1) ? "Page " + $V{CURRENT_PAGE_NUMBER} + " of " + $V{TOTAL_PAGE_NUMBER} : "" and evaluation time: AutoThis solution doesn't work for reports with subreport unfortunatelly, and I don't know, what can I do?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now