This wiki article elaborates on how to hide the name of the Adhoc view in exports of CSV, PDF, XLS, RTF, ODF, DOCX.
Navigate to C:Program Filesapache-tomcat-webappsjasperserver-proWEB-INFclasses and locate jasperreports.properties file
In the properties file add:
net.sf.jasperreports.export.csv.exclude.origin.band.1=title (For excluding title in CSV export)
net.sf.jasperreports.export.pdf.exclude.origin.band.1=title (For excluding title in PDF export)
net.sf.jasperreports.export.xls.exclude.origin.band.1=title (For excluding title in XLS export)
net.sf.jasperreports.export.rtf.exclude.origin.band.1=title (For excluding title in RTF export)
net.sf.jasperreports.export.odf.exclude.origin.band.1=title (For excluding title in ODF export)
net.sf.jasperreports.export.docx.exclude.origin.band.1=title (For excluding title in DOCX export)
Save the file, restart the server and notice the changes upon exporting.
Jasperreports.properties file:
Screenshot of PDF export after applying changes to jasperreports.properties file:
Without adding net.sf.jasperreports.export.pdf.exclude.origin.band.1=title to jasperreports.properties file:
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