lisaws Posted April 30, 2018 Share Posted April 30, 2018 I am trying to use a table element in my report (iReport Designer Professional 5.2.0) and use zero cells in the Detail section - and instead only use a Group Header. (In case you're wondering why - it is to make use of Jasper's variables and aggregations rather than relying solely on the SQL query). Is it possible to use zero Detail cells? When I try to delete all of the detail cells, I get the following errors:org.xml.sax.SAXParseException; lineNumber: 213; columnNumber: 18; cvc-complex-type.2.4.b: The content of element 'jr:column' is not complete. One of '{"http://jasperreports.sourceforge.net/jasperreports/components":detailCell}' is expected.<br>Error Trace[/code]net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 213; columnNumber: 18; cvc-complex-type.2.4.b: The content of element 'jr:column' is not complete. One of '{"http://jasperreports.sourceforge.net/jasperreports/components":detailCell}' is expected.[/code]org.xml.sax.SAXParseException; lineNumber: 213; columnNumber: 18; cvc-complex-type.2.4.b: The content of element 'jr:column' is not complete. One of '{"http://jasperreports.sourceforge.net/jasperreports/components":detailCell}' is expected.[/code]I have tried such workarounds as 1) keeping Detail cells but making their height = 0 px, and 2) having a Detail cell with a blank static text element in it and setting Remove Line When Blank to true on that element. Link to comment Share on other sites More sharing options...
Solution lisaws Posted April 30, 2018 Author Solution Share Posted April 30, 2018 Nevermind! I realized that my workaround #1 actually does work (keeping Detail cells but making their height = 0 px). 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