Removing Repetitive Column Headers From CSV Export in Jasper

Posted on by By Satya Gopi, in Business Intelligence, Jaspersoft | 0

Removing The Repetitive Column Headers From CSV Export in Jasper

 

Prerequisites::
Jasper Server 5.5, IReport

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

Lets Start 30 Days Free Trail

Database:: Foodmart

Scenario: I need to remove the repetitive column headers of a report after exporting the report in CSV format in Jasper server

Created a Sample Report which includes a Table component,

for this report below are screenshots for actual output and expected output

Actual:

 

Expected:

 

To achieve the above-expected result we need to set 3 properties for the report

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

Claim Your 30 Days Free Trail

<property name=”net.sf.jasperreports.export.csv.exclude.origin.report.myreport” value=”<ReportName>”/>

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

 

<property name=”net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.myreport” value=”*”/>

Now deploy the changes in Jasper server and verify the CSV export the headers will repeat only once

Output:

 

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

Thanks,

SatyaGopi,

BI Developer.

 

 

 

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