Jump to content
We've recently updated our Privacy Statement, available here ×

Possible to create table element in report with zero detail cells?


lisaws
Go to solution Solved by lisaws,

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...