fixed height stretch


Hi. I'm new with jaspersoft, trying make a report and i'm stuck. And sorry for my english in advance.

So. I have a background grid of lines with exactly 23 pixels height, have same height band with fields.

Like this: /sites/default/files/files/Fail.jpg

When a create a report i got the: /sites/default/files/files/FailResult.jpg

Line 2 look's pretty, line 3 start with right coordinates but ends too early. I thought my stretched band must be 23*3 height for three rows, and 23*6 for 6 rows.

How i can achieve this? Thanks.

uwbwyz34's picture
Joined: Apr 17 2013 - 12:19am
Last seen: 7 years 9 months ago

1 Answer:


Do not use a "background grid". Simply set "Padding and borders" to your text fileds by right-clicking.

To stretch all text fileds in a row in common when one of them is stretched, set value "Stretch type = Relative to ..."

Cheers, Thomas

Thomas Zimmer's picture
Joined: Oct 2 2012 - 1:35am
Last seen: 6 days 5 min ago

all of my rows must be one fixed size. 23pix. So, if i will use you method they will be random size

uwbwyz34 - 7 years 9 months ago

Possibly I do not understand rightly... Why do you use line breaks "\n" in your text field expressions? Isn´t it possible to have single expressions in a detail? Then you could set the height of the text field to 23px statically and draw the border around the fields, instead of trying to create a "background grid"

Thomas Zimmer - 7 years 9 months ago