Jump to content
We've recently updated our Privacy Statement, available here ×

Conditional page number showing


koral90

Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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: Auto

This solution doesn't work for reports with subreport unfortunatelly, and I don't know, what can I do?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...