shop12 Posted June 15, 2009 Share Posted June 15, 2009 I am a newbie to IReports. I am trying to embed 2 subreports in my main page. I am getting this error message."Band height validation for subreport "xxxxx" failed in the current page context " Someone told me to create a group and add the subreport to the group. I did that but I am still getting the error message.I am using IReport 3.5.2Please Help!Post Edited by shop12 at 06/15/2009 16:59 Link to comment Share on other sites More sharing options...
ietsira Posted December 16, 2009 Share Posted December 16, 2009 That happens because the sum of the bands plus the top and down margins of the main report is less than the same sum of the subreport.Jasper validates that and throw that Exception. To solve that you have to right click at your report name at Report Inspector and choose Properties, than raise the page height.To check how Jasper validates it, check this peace of code:http://grepcode.com/file/repo1.maven.org/maven2/jasperreports/jasperreports/3.5.0/net/sf/jasperreports/engine/design/JRVerifier.java#JRVerifier.verifyBandHeights(java.util.Collection,net.sf.jasperreports.engine.JRReport,int,int,int) Hope it helped,Eduardo Rodrigues Post Edited by ietsira at 12/16/2009 17:29 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