如何在JasperReports中动态扩展框架? [英] How to expand frames dynamically in JasperReports?
本文介绍了如何在JasperReports中动态扩展框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
frame
text field: short | text field: very long text causing linebreak
frame
other elements
如何配置jasper报告,以便长文本字段将所有后续帧和元素向下移动?(即:动态调整帧的大小)?
How do I have to configure jasper reports so that the long text field moves all subsequent frames and elements down? (ie: causes a resize of the frames dynamically)?
推荐答案
解决方案:使文本字段为 float;相对于最高的物体伸展;溢出
并使周围的框架浮起;没有拉伸.
Solution: make the text fields float; stretch relative to tallest object; overflow
and make the surrounding frames float; no stretch
.
这与直觉非常相反,必须将扩展框架设置为 no Stretch
才能扩展,并相应地向下移动任何后续元素.
This is very counter-intuitive that an expanding frame will have to be set to no stretch
in order to expand, and move any subsequent elements down accordingly.
这篇关于如何在JasperReports中动态扩展框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文