The ability to suppress various headers and footers in report exports has been avalable since version 3.x by enabling export filters in .../jasperserver-pro/WEB-INF/classes/jasperserver.properties. The generic format for these properties is: | [toc] |
net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name} net.sf.jasperreports.export.{format}.exclude.origin.keep.first.{suffix}.{arbitrary_name}
These properties are explained in detail here: How can I suppress page headers and footers when exporting to XLS?
Beginning with version 5.0
A new wild card property must be added for suppressing column headers in CSV exports (exports to non-paginated Excel do not require this additional property):
net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.3=*
The following properties will keep the column header and page header on the first band and suppress all others:
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.band.4=columnHeader net.sf.jasperreports.export.csv.exclude.origin.keep.first.report.4=* net.sf.jasperreports.export.csv.exclude.origin.band.5=columnFooter #entry #4 and the 4* both make the setting apply to all subreports
Recommended Comments
There are no comments to display.
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 accountSign in
Already have an account? Sign in here.
Sign In Now