Sorry for my bad English,
I am using jasperreport 2.0.2, I wan to make a report like this:
Text1 | line1 |
line2 | |
line3 | |
line4 | |
line5 |
I want the Text1 to be vertical align in middle, so I put the Text1 in main report and the line data in subreport, and set Text1's stretch type property to "Relative to the tallest object", it work fine.
but when the line data in subreport has just one line and the Text1 was more then one line , it becomes like this:
Text1 aaa aaaaaaaaaaa | line1 |
the subreport's line data textField didn't stretch to the same height as the Text1 field as I want.
I had already set both Text1, subreport and line1 's stretch type property to "Relative to the tallest object", but it still not work, finally I found that the reason may be that the detail band in subreport was fix height and wouldn't stretch to the whole sub report's height.
Any suggestions to solve this?
Thanks,
Frank