Jump to content
Changes to the Jaspersoft community edition download ×

Sizing Subreport Elements


Recommended Posts

I get this feeling not being in control re. subreport elements and their size.


Here's the deal. I am using the adding-a-group-per-subreport trick to construct a report based on 7 subreports. Every time I add a subreport, I am having trouble getting output. The first 100+ tries I get nothing but an out-of-memory error.


The hanging seems to be caused by the band/elemt size I am giving to the subreport. but I really do not understand it. And of course I want to understand, so that I can skip the 100+ useless tries in future.


My (not so successful) approach is:

- create a band, height 10

- add the subreport, height 10

- print with overflow

- fix to top of band

- let the sizing be done by Jasper


This would allow for 600 / 10 = 60 subreports in one report, before I hit the page size limit, right?


But this does not always work, apparently JR requires a certain minimal band or element size. Does anyone the formula to get that size? If the size is less than the magic (to me) mininum, JR will start a new page and see that the report does not fit over and over again until memory runs out...

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...