How to remove repeating table headers in jasper ad-hoc view when exported to csv format

Posted on by By admin, in Jaspersoft | 0

Issue:

When exporting an ad-hoc view table to a CSV file, the headers are repeated.

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Resolution:

To leave the table’s header only on the very first page top of the csv file, follow below steps:

  1. Open the configuration file, \jasperserver-pro\WEB-INF\classes\jasperreports.properties
  2. Add to the very end of the configuration file the lines that I quote below:
    #suppress page and column footers and all but the first page and column headers when exporting to CSV
    net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.1=pageHeader
    net.sf.jasperreports.export.csv.exclude.origin.band.2=pageFooter
    net.sf.jasperreports.export.csv.exclude.origin.keep.first.band.3=columnHeader
    net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.3=*
    net.sf.jasperreports.export.csv.exclude.origin.band.4=columnFooter
    
  3. Restart jasper server to apply changes

Attaching jasperreports.properties for reference

How to remove repeating table headers in jasper ad-hoc view

Are you tired of your bi tool? Why can't you try Helical Insight
Helical Insight provides all the capabilities expected out of any BI tool like user role management, multi-tenant environment,
exporting, email scheduling, device compatibility, Administration, etc. Don’t skip it – registration is open : https://www.helicalinsight.com/register/

Thank You,
Archana
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments