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

Total Page Number + printWhenExpression


henryedsl

Recommended Posts

Hi!

A certain field in my report must be displayed only when the total number of pages is greater than 1, displayed in every page of the report. If the report
has only 1 page, then there is no need to display this field.

I know that PAGE_NUMBER with evaluationTime="Report" will display the number of pages in the report, but the problem is that i need this in the printWhenExpression of the field.

Is there a way to do something like:
new Boolean($V{TOTAL_PAGE_NUMBER}.intValue() > 1)

So this field is displayed in every page only when the total number of pages is greater than 1?

I didn't fint anything in the forums.

Thanks in advance.

Best regards,

Henry

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...