How to overcome band height limitation issue?

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email with questions or issues requiring TIBCO review or response.

Hi, I am working on a jasper report which has total 15 requirements and all these requirements should be included in a single jasper report. Report contains tables and charts. What I planed is I will keep all tables in detail band and all charts in summary band. But still I can't add all requirements in siongle report. Tables I can fit in detail band, but for chart I can,'t reduce the charty size as individual chart has useful data and it  should occupy full width of summary band.

And I have 6-7 charts. Is there any way we can adjust the height of summary band as per our need. I tried but I could increase it till max  802.  Please give me solution for this.

daad.madhusudan's picture
Joined: Mar 13 2015 - 4:36am
Last seen: 5 years 11 months ago

4 Answers:

I think you can try with putting charts in subreportts and calling them in your main report summary band. Not tries, but just a heads up.

abc.hegde's picture
Joined: Apr 1 2015 - 4:02am
Last seen: 3 years 2 months ago


Can you put some or all of the charts each in its own sub-report?  (Not always possible I know.)

I am not sure if it will allow you to by pass 801 px limit as I only have 3 sub reports in one summary.

Alternately you can try making a second detail band and using that for the chart. (Also not always possible.)



peter.w's picture
Joined: Oct 12 2012 - 6:57am
Last seen: 3 months 1 week ago

Did you try using Groups? So that it would be easy for debugging also.

jo.jasmine's picture
Joined: Apr 6 2015 - 8:50am
Last seen: 3 years 8 months ago

Report detail band can stretch based on its content but summary band can't.

My suggestion for you is to create sub report(s) to display your charts, then put those sub reports into main report. The height of the sub report(s) can be set at minimal, say 10 pixes. This way we can rely on JasperReports to stretch the report content into the next page if neccessary, without having to worry about how to screeze every report elements into a finite space limited to the page height minus top and botton margin, and other non detail band heights.

By the way, thanks for the suggestions made by "abc", Peter, and "Jo" to help out our users. Your guys are super:)!

tchen's picture
Joined: Feb 27 2008 - 7:33am
Last seen: 1 day 8 hours ago