sub report doesn't display when overflow

我与影子孤独终老i 提交于 2019-12-12 02:57:58

问题


Some times give error like:

net.sf.jasperreports.engine.JRRuntimeException: Subreport overflowed on a band that does not support overflow.

What are necessary changes require on sub report to minimize the same?

Also some times it doesn't display subreport when data overflowed, but display rest of data in iReport.

property set as below:

sub report property:

Print when detail overflow : true
position: float
stretch type :relative to tallest obj

textfields in sub report:

stretch with overflow : true
Print when detail overflow : true
position: float
stretch type :relative to tallest obj

Please suggest something..


回答1:


Try changing the "Split Type" property of the detail band to "Stretch" and see whether that works.... you will get the error message you mentioned only when you have a sub report in a band that does not support Stretch Type... But in your case you said you had the sub report in Detail band so it should work....



来源:https://stackoverflow.com/questions/10172074/sub-report-doesnt-display-when-overflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!