问题
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