2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 By: xeon 7 - xeon007 how to fill out whole each report page? 2005-07-25 06:38 Hi, First I would like to thank Teodor for jasperreports. I have been using it for 2 years and it works great. Currently I am using version 0.6.3. I have little problem with report template. It looks like this: ------------------------------ title band ------------------------------ detail band (here I have about 20 field to display) subreport 1 subreport 2 ------------------------------ page footer band ------------------------------ summary band ----------------------------- where subreport 1 looks like: ------------------------------ title band ------------------------------ detail band about 10 fields to display subreport 1a subreport 1b subreport 1c ------------------------------- (subreports 1a, 1b, 1c are rather simple, they have title and detail band only. I put there about 1-3 fields to display) and subreport 2 looks like: ------------------------------ title band ------------------------------ detail band about 10 fields to display subreport 2a subreport 2b ------------------------------- Subreports 2a and 2b have tile and detail band only. I put there about 10 fields to display. Data passed to fill report is specific: master report only one record subreport 1 only one record subreport 1a only one record subreport 1b only one record subreport 1c only one record subreport 2 about 5-10 records subreport 2a only one record subreport 2b only one record subreport 2 is displayed in wrong way: first page of the generated report is whole filled out but other pages are fill out about 60-75% of whole space. I can see blank spaces at the bottom of each page exept for first one. I have tried to fixed it using some triks in xml files - it did not help. I tried to debut JRFillSubreport, JRFillBand, JRBaseFiller and some other classes but without success :[ Regards Chris By: C-Box - c-box RE: how to fill out whole each report page? 2005-07-25 06:49 Try to put each subreport in it's own dummyband (with the same dummy expression e.g. $V{REPORT_COUNT}.... then remove all empty spaces between any band-bottom and the last element before the band-bottom. I experienced something similiar and it was because JasperReports-Engine "reserves" the space between the bottom of a band and the last element ... when breaking the element is placed at its origin on next page... if there isn't any element above then the whole "stretched" element is moved upwards... so this is why it could happen that you could get empty space at the end of a page. Try also to colorize your bands temporarily, so that you see wheter a band has stretched itself somewhere.(for testing) hth C-Box By: xeon 7 - xeon007 RE: how to fill out whole each report page? 2005-07-26 03:00 It works. Thank You. Regards Chris 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