Band Height Validation for subreport

0

I have main report which includes subreports.  Some of this subreports again includes other subreports. Main report has page header, page footer and summary and margin of 20 in each side. Size of the report is 595. Size of Page Header, page Footer , summary is 115, 43, 397 respectively. Summary section has only sub report. For the sub reports I have kept the width 910 and height is 430. All the sub reports only have summary section. Whenever I am adding subreport inside another subreport I am getting the following error message:

net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.design.JRValidationException: Band height validation for subreport "Statistics_Person_IdentityRecords" failed in the current page context (height = 385, top margin = 0, bottom margin = 0) : 
     1. The summary section and the margins do not fit the page height.
    at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:536)
    at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$17(ReportController.java:511)
    at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:429)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: net.sf.jasperreports.engine.design.JRValidationException: Band height validation for subreport "Statistics_Person_IdentityRecords" failed in the current page context (height = 385, top margin = 0, bottom margin = 0) : 
     1. The summary section and the margins do not fit the page height.
    at net.sf.jasperreports.engine.fill.JRFillSubreport.verifyBandHeights(JRFillSubreport.java:1169)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.validateReport(JRFillSubreport.java:1125)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:538)
    at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:350)
    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.fillSummaryNoLastFooterNewPage(JRVerticalFiller.java:1374)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1193)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:297)
    at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:117)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:615)
    at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135)
    at java.lang.Thread.run(Thread.java:748)
 

The size of the summary of the first subreport within which the other subreport is getting added is 385. The size of the summary section of the subreport that is being added is 355.

I am unable to fix this problem. I need to understand why this problem comes up because I need to add multiple sub reports. I am getting this same kind of error multiple times.

Any help will be greatly appreciated. Thanks in advance

 

kunalsingharoy's picture
Joined: Jul 3 2018 - 7:35am
Last seen: 1 year 2 weeks ago

0 Answers:

No answers yet
Feedback
randomness