urpal99 Posted June 26, 2013 Share Posted June 26, 2013 I am new to jasper reports.I created a new jasper report which has a group header section and a detail section. The output format for this report is CSV. When my group header and detail section has the same number of fields everything works fine. However, if I have more number of fields in my group header, my detail row is padded with the extra commas at the end. Is this expected behavior? Can I have a work around for this?For example: If I have 4 fields in my group header section and 2 fields in my detail section.Current behavior: summaryField1, summaryField2, summaryField3, summaryField4 detailField1, detailField2,,Desired behavior summaryField1, summaryField2, summaryField3, summaryField4 detailField1, detailField2Thanks Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 29, 2013 Share Posted June 29, 2013 That´s the expected behaviour.See the difference in the two following images: Left image: 9 columns in resulting xls/csvRight image: 4 columnsWhereby it doesn´t matter in which bands the elements are placed...Cheers, Thomashttp://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
urpal99 Posted July 2, 2013 Author Share Posted July 2, 2013 Thank you for the clarification. 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