Jasper Report CSV

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, detailField2

Thanks
 

urpal99's picture
Joined: Jun 26 2013 - 8:40am
Last seen: 9 years 8 months ago

1 Answer:

That´s the expected behaviour.

See the difference in the two following images:

 

Left image: 9 columns in resulting xls/csv

Right image: 4 columns

Whereby it doesn´t matter in which bands the elements are placed...

Cheers, Thomas

http://www.thomaszimmer.net

Thomas Zimmer's picture
Joined: Oct 2 2012 - 1:35am
Last seen: 7 hours 44 min ago

Thank you for the clarification.

urpal99 - 9 years 8 months ago
Feedback