hjlee4 Posted August 25, 2021 Share Posted August 25, 2021 First, I'm sorry about translation.I tried to create a document using multi-queries and import the subreport.However, report1 is printed as a problem, and I only have the names reportMain and reportSub, not report1.I don't know where to check, is there anything helpful? net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.design.JRValidationException: Band height validation for subreport "report1" failed in the current page context (height = 842, top margin = 40, bottom margin = 0) : 1. The background section and the margins do not fit the page height. at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:551) at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$18(ReportController.java:526) at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:444) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)Caused by: net.sf.jasperreports.engine.design.JRValidationException: Band height validation for subreport "report1" failed in the current page context (height = 842, top margin = 40, bottom margin = 0) : 1. The background section and the margins do not fit the page height. at net.sf.jasperreports.engine.fill.JRFillSubreport.verifyBandHeights(JRFillSubreport.java:1183) at net.sf.jasperreports.engine.fill.JRFillSubreport.validateReport(JRFillSubreport.java:1139) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:545) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:357) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:383) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:548) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2613) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:836) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:275) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:119) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135) at java.base/java.lang.Thread.run(Unknown Source) Attached is the picture below for your reference. Link to comment Share on other sites More sharing options...
Mehul Bamania Posted August 31, 2021 Share Posted August 31, 2021 This looks like the sum of height is bigger than the page height issue. You need to make sure the total height do not go over the page height. Please post your sample report. Link to comment Share on other sites More sharing options...
hjlee4 Posted September 1, 2021 Author Share Posted September 1, 2021 thank you for your help. here's my report files.I really want to solve my problem, but it doesn't... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now