nKognito Posted February 9, 2012 Share Posted February 9, 2012 I am trying to compile a template and it fails with warning: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : 1. Warning : Element bottom reaches outside band area : y=85 height=126 band-height=192Why it fails on warning? It should compile that template, no?Thank you Link to comment Share on other sites More sharing options...
augarte Posted February 9, 2012 Share Posted February 9, 2012 Hi, The error says clearly what is happening in this case.You have an element in a band. The height of the element is 126, and the starting point is in the position y=85. So the end point of your element will be 211 (126+85). The height of your band is smaller so what is happening is that your element is outside the band.You have two options: 1) Change the initial position to be "y" smaller than 1072) Modify the height of the band to be bigger than 211If you don't understand it, just attach your jrxml file and I'll help you.Regards. Link to comment Share on other sites More sharing options...
nKognito Posted February 9, 2012 Author Share Posted February 9, 2012 Thanks for your reply.I understand what the problem is. What I can't understand - why it fails on warning? It should fail only on errors Link to comment Share on other sites More sharing options...
augarte Posted February 10, 2012 Share Posted February 10, 2012 When you try to preview the report from iReport the message shows it as warning, but it is an error. When you compile the report (previewing it from iReport compiles the .jrxml file), if everything goes ok and without errors should create a .jasper file but as you can see this file is not created so basically is an error and not a warning. Maybe the message could be clearer, showing it as an error and not as a warning. 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