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

Need to display 50 records per page


spmkkmps

Recommended Posts

Hi All,

Am using jasper report for my application wherein i need to export it to browser containing 50 records per page out of  'n' number of records. Please post your replies immediately if you faced similar problem with the code what i need to do exactly. Thanks in advance.

 

Madhan!!!!

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

Use printWhenExpression of the page break and set it to print after 50 records in a page. Use the following expression:

 

I didnt try this one but this will display 50 records per page in your report.

 

DNV Srikanth

Code:
new Boolean(REPORT_COUNT.intValue() == 50)
Link to comment
Share on other sites

Srikanth, Thanks for your reply. Can you explain me more clear on this. In detail band i need to display 4 fields and where i need to place the code and what is that REPORT_COUNT. can you please get the complete code, what and all has to be done.

Link to comment
Share on other sites

Hi,

REPORT_COUNT is a built-in variable which has total no.of records in a report.So when you place this in the detail band in the report it will check for the no.of pages per page.sorry instead of the expression mentioned previously use the following one:DNV Srikanth.

Code:
new Boolean($V{REPORT_COUNT}.intValue() == 50)
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...