CSV columns misaligned after a page break

0

Not sure if this is a bug.... I have a report with multiple sub reports. The report has the following csv-related properties set.

<property name="net.sf.jasperreports.export.csv.exclude.origin.band.1" value="columnHeader"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.report.1" value="*"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.2" value="*"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.band.3" value="pageFooter"/>
<property name="net.sf.jasperreports.export.csv.exclude.origin.report.3" value="*"/>
<property name="net.sf.jasperreports.export.csv.exclude.key.SpaceForNotes" value="SpaceForNotes"/>
<property name="net.sf.jasperreports.export.csv.exclude.key.Logo" value="Logo"/>
<property name="net.sf.jasperreports.export.csv.exclude.key.TitleArea" value="TitleArea"/>

Columns from the subreports align properly with each other initially. However, after the spot where a page break would otherwise occur, the columns are all shifting left by one spot (although in other revisions of the report, this # was more at times). Is there a solution to this?

Not super important, but would like the CSV to work properly if it's going to be available (and I don't want to more-generally turn off the CSV exporter at the server level).

kheaps's picture
14
Joined: Mar 4 2013 - 10:56am
Last seen: 4 years 9 months ago

1 Answer:

0

This is a quite late answer, but you might neeed to check the each columns reportElement (jrxml) attributes so that it matches with the Detail's reportElement

for example make sure the reportElement, say,<reportElement mode="Opaque" x="3411" y="0" width="203" height="20"> for each <columnHeader> matches with corresponding values in "<detail>"

icemann's picture
Joined: Jul 3 2014 - 6:13am
Last seen: 2 years 3 months ago
Feedback
randomness