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

Page X of Y Problem


laceja

Recommended Posts

Hi folks, I'm very new to JasperReports and IReport.

Using the example from the Ultimate Guide, I'm trying to create a Page X of Y, but it fails. For example, on a two page report I get "Page 1 of 2" on the first page, but on the second page, I get "Page null of 2".  I'm using the exact settings for the variable I created with the name "currentPage" and for the Textfield as well.

Any suggestions?

Thanks.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hey

In iReport library ( window pane just below Element properties . Right of your layout ) , there is a pre-defined element labelled "Page X of Y" . You can drag and drop this element on to your layout and use it to display the same.

You can also check out the underlying code by referring the properties of this element.

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