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

CSV export without header line on every page


Michael.Boehm

Recommended Posts

Hi,

I am trying to create a report that will finally be exportet into csv.

When doing that, I always get the table header on every page, which disturbs the final processing of the csv.

Is there any way to export a report into csv without page-breaks (when exporting into Excel, this is one of the options).

Or what else can I do to remove these additional lines?

Thanks, Michael

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Hi Michael,

Please use the following property in the jrxml file to avoid column header repeating in csv file.

net.sf.jasperreports.export.{format}.exclude.origin.keep.first.{suffix}.{arbitrary_name}

Example

<property name="net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.1" value="columnHeader"/>

Here is a reference to community article on how to suppress headers and footers exporting to Excel.

https://community.jaspersoft.com/wiki/how-can-i-suppress-page-headers-an...

Link to comment
Share on other sites

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...