Jump to content

Recommended Posts

Posted

Hi,

 

I have a simply report that I would like to display a site diary entry. Each diary entry has multiple varchar fields some of which are 10000 char long. I currently have each text field in its own frame and if the detail band is high enough all data is display correctly else it is truncated at the height of the band. What I would like to do is have the band height grow to fit the record data, so the band height maybe as small as a couple of lines or grow to muliple pages in length.

 

Does anyone know if this can been done with jasperReports?

 

thanks

munga

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Just use the "StretchWithOverflow" Property at your textfield (at the textexpression tab in iReport).

 

Set it to true and your textfield will stretch according to the value of the field.

 

Note, that you have to set your other elements (rectangles, lines, etc) stretching themselves according to bandheight dynamically to keep your design working if the fields stretch. (element properties --> StretchType)

 

hth

C-Box

Posted

That's already set. What I'm trying to do is stretch the band when needed by the text fields.

Post edited by: munga, at: 2008/01/15 11:56

Posted

In horizontal reports, the detail band does not stretch.

 

However, I don't think you really want to have printOrder="Horizontal" since you have columnCount="1", therefore you should simply set printOrder="Vertical" to allow the detail band to stretch.

 

HTH,

Lucian

Posted

Thanks very much Lucian,

 

That was the problem. The only other thing I had to do is set the frames Stretch Type to 'No Stretch' which was a bit confusing but hey it works :).

 

thanks again.

munga

  • 5 months later...
Posted

Hi Lucian,

 

I am also having the same issue of dynamically stretching the detail band.

In my case i have 4 columns - so i can't resort to vertical printorder. Please suggest.

 

Thank you very much for your valuable reply for my post related to request params in jasper report. It helped me a lot.

 

--Venu

Posted

venuwin wrote:

In my case i have 4 columns - so i can't resort to vertical printorder. Please suggest.

 

Detail bands in horizontal reports are not able to stretch. Afaik, there is no workaround for this. If you think such functionality is required, please post it as a feature request here.

 

Regards,

Lucian

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