How to overcome band height limitation issue?

0

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: 3 years 3 months ago

4 Answers:

0

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
166
Joined: Apr 1 2015 - 4:02am
Last seen: 6 months 2 weeks ago
0

Hi

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
303
Joined: Oct 12 2012 - 6:57am
Last seen: 2 months 1 week ago
0

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: 1 year 1 week ago
0

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
53074
Joined: Feb 27 2008 - 7:33am
Last seen: 6 hours 10 min ago
Feedback
randomness