How to increase subreport's textField height a

2019-07-26 20:32发布

I would like to resize subreport's text field (before include into main report) like the highest main report's text field.

Screen shot

As you can see the subreport's text field does not have equal height.

1条回答
时光不老,我们不散
2楼-- · 2019-07-26 21:02

You need to work with stretchType, you can't set the height dynamically in any other way (not considering via java code)

On reportElement tag you have the attribute stretchType, which you can set to RelativeToBandHeight or RelativeToTallestObject. I would go for:

stretchType="RelativeToTallestObject"

However this function will stretch relative to largest object in band, which in your case is the band in the subreport, so probably you should think this the other way around, hence

Set desired field size in subreport then stretch the textElements in your main report, to match the height of your subreport.

查看更多
登录 后发表回答