Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to hide the name of the Adhoc view in exports of CSV, PDF, XLS, RTF, ODF, DOCX


    Sarthak Chaudhary
    • Features: Ad Hoc Product: JasperReports® Server

    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. 

    http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name}

     

    Jasperreports.properties file:

    jasperreports.properties.png.197f70388585d567036eb44e37809580.png

    Screenshot of PDF export after applying changes to jasperreports.properties file: 

    pdf_export_without_title.png.cf2ae28ec624c641ee8645c0ee94530f.png

    Without adding net.sf.jasperreports.export.pdf.exclude.origin.band.1=title to jasperreports.properties file: 

    pdf_export_with_title.png.faa6d106e85eec4cfe4b5f37bcbf23de.png


    User Feedback

    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 account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...