Jump to content
We've recently updated our Privacy Statement, available here ×

How to auto fit size on detail columns?


kito_park

Recommended Posts

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

 

pru.png.90d7aab937ae4cd2a3dbd7e4112c1f8c.png

 

Thanks for help :)

pru.png.baea1736e5c6bea6460bd05f2fb1a397.png

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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

Link to comment
Share on other sites

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...