Stretching band in Jasper

Making a band stretch according to the height of its contents is simple. First, you need to have some content that is stretching, for example, a text field with “stretch with overflow” property set to true.

For the band, you need to set “split type” to stretch. Also, make sure your report specifies “print type” to be vertical. To guarantee layout, Jasper does not stretch the fields if the print type is horizontal.

If you have fields in the band below the stretching field, you probably need to change their position type to either float or “fix relative to bottom”. Otherwise, they are not moving when the field above is stretching, and the fields are rendered on top of each other.