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

Adjusting size of cells in table to text


wszystkielogizajete

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi wszystkielogizajete (lol keyboard smask user name)

This is a difficult one to achieve. 
I am not sure if your produce both long and short text return on report build, so it's hard to try and give you exact answer based on your requirements. 
If you either get long or short on reports request, you could put the 2 elements on top of eachother and use the "Print When Expression" 
So create another varable that would indicate of long of short, then add the condition in the "Print When Expression". 
So if long then the one text field will display if shor the other. 

Or you could put the 1 cell on top ot the other and have 1 pixel height, then ensure the short data writes to the short cell and long data writes to long cell. Also ensure the strech with overflow is enables and add stretch type (play around with different types). If the cells don't work, try mutiple subreports, one for long data and other for short data. 

Or you could add additional band and use one band for long data and other for short and use the print when epxression again. 

Or and end of day programmaticlly the only way would be to make use of the jasper java api, to create jrxml on request and set the height and w​dth at compile time.

Just throwing ideas out there, hope it helps.
If you come up with another solution please share. 
​​​​​​




 

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