dnvsrikanth Posted November 7, 2008 Share Posted November 7, 2008 Hi,I have a requirement in which I need to restrict the no. of rows per page in a report. For example suppose I need to display only 15 records per page.How can this be achieved? DNV Srikanth Link to comment Share on other sites More sharing options...
dnvsrikanth Posted November 8, 2008 Author Share Posted November 8, 2008 Can any one tell me how to achieve this??? Link to comment Share on other sites More sharing options...
shrije Posted November 9, 2008 Share Posted November 9, 2008 Add a manual page break and use the REcord_Count to enable the break every 15 records Link to comment Share on other sites More sharing options...
migr Posted November 10, 2008 Share Posted November 10, 2008 Facing the same problem, but since I'm a newbe for Jasper Reports, could you please elaborate your answer.What I don't know is how to:1. Set the manual pagebreak2. Use the record count to set this Link to comment Share on other sites More sharing options...
dnvsrikanth Posted November 10, 2008 Author Share Posted November 10, 2008 Hi migr If you are using iReport tool it will be easy to do this. Go to Edit Menu and select "Insert Page/Column Break" option. Then the cursor changes to cross-heir in which you can insert page-break In the printWhenExpression expression give the following expression: Code:new Boolean($V{REPORT_COUNT}.intValue() == 15) Link to comment Share on other sites More sharing options...
migr Posted November 10, 2008 Share Posted November 10, 2008 Cheers!! Link to comment Share on other sites More sharing options...
dnvsrikanth Posted November 10, 2008 Author Share Posted November 10, 2008 Hi I have applied this inserted page breaks. But I encountered one problem in which the last record in some pages is being rendered with excess heigt. I mean to say when the page has excess space to render the rows, the last row is getting adjusted so that its height is getting increased which is awkward. Can anyone suggest me the way to resolve this issue... DNV Srikanth Link to comment Share on other sites More sharing options...
dnvsrikanth Posted November 12, 2008 Author Share Posted November 12, 2008 Can anyone suggest me the resolution for this Link to comment Share on other sites More sharing options...
Teodor Danciu Posted November 12, 2008 Share Posted November 12, 2008 Hi,You need to attach some PDFs and report templates to show the problem.Thanks,Teodor Link to comment Share on other sites More sharing options...
C-Box Posted November 12, 2008 Share Posted November 12, 2008 dnvsrikanthWrote: Hi migr If you are using iReport tool it will be easy to do this. Go to Edit Menu and select "Insert Page/Column Break" option. Then the cursor changes to cross-heir in which you can insert page-break In the printWhenExpression expression give the following expression: Code: Hi Shouldn't it be better new Boolean($V{PAGE_COUNT}.intValue()==15) instead of REPORT_COUNT (what is just once 15) hthC-Box 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