spmkkmps Posted July 3, 2009 Share Posted July 3, 2009 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 More sharing options...
dnvsrikanth Posted July 7, 2009 Share Posted July 7, 2009 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 SrikanthCode:new Boolean(REPORT_COUNT.intValue() == 50) Link to comment Share on other sites More sharing options...
spmkkmps Posted July 8, 2009 Author Share Posted July 8, 2009 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 More sharing options...
dnvsrikanth Posted July 8, 2009 Share Posted July 8, 2009 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 More sharing options...
spmkkmps Posted July 8, 2009 Author Share Posted July 8, 2009 when i put this in the detail band, it displays only the 50th record alone and not 50 records per page. Link to comment Share on other sites More sharing options...
dnvsrikanth Posted July 8, 2009 Share Posted July 8, 2009 Hihave you inserted a page break in the report?? Use printWhenExpression of the page break and set it to print after 50 records in a page. DNV Srikanth.Post Edited by dnvsrikanth at 07/08/2009 11:37 Link to comment Share on other sites More sharing options...
spmkkmps Posted July 8, 2009 Author Share Posted July 8, 2009 no just i have added the previous given code in the printWhenExpression of the detail band. where i need to set it to print after 50 records in a page. can you please provide me the steps. Link to comment Share on other sites More sharing options...
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