How to auto fit size on detail columns?

0

Hi, im trying to create a report that use 2 columns, the report works fine except the size of the columns, the columns should have the same height.

I want to set the max size between column A and B, noi matter the blank space on the smallest column

there is a screenshots

 

 

Thanks for help :)

kito_park's picture
Joined: Mar 28 2019 - 3:42pm
Last seen: 3 weeks 4 days ago

1 Answer:

0

Hello,

Can you give us a bit more info.

Are you using report level columns?

Is each section a seperate report band? 

 

If two tables elements are contained within a single band, have you tried setting the band stretch type to Container bottom?

 

Variable-Height Text Fields
Because text fields have dynamic content, most of the time you can’t anticipate the exact
amount of space to provide for them. If the space you reserve for your text fields is not
sufficient, the text content is truncated so that it fits into the available area.
This scenario is not always acceptable, so you can let the reporting engine calculate the
amount of space required to display the entire content of the text field at runtime, and
automatically adjust the size of the report element.
To do this, set isStretchWithOverflow to true for the particular text field elements
you are interested in. By doing this, you’ll ensure that if the specified height for the text
field is not sufficient, it will automatically be increased (never decreased) in order to be
able to display the entire text content.
When text fields are affected by this stretch mechanism, the entire report section to
which they belong is also stretched.

 

If they are Text elements you may want to check Detaisl overflow and stretch with overflow. 

This is a good example of when working with text grid layout behavior:

https://community.jaspersoft.com/blog/tip-detail-overflow-vs-stretch-overflow-jasper-reports-when-use-how-avoid-repetaitonimages-or

danoldenkamp@gmail.com's picture
Joined: Aug 29 2018 - 11:12am
Last seen: 8 hours 18 min ago
Feedback