Jump to content
We've recently updated our Privacy Statement, available here ×
  • Remove repeating headers in the crosstab report when exported to XLS/CSV only.


    sudata
    • Features: Exporters Version: v7.9.0 Product: Jaspersoft® Studio

    Issue Description:

    Customer with report which contains crosstab often whats to hide headers for each page excluding first page of report when exported to xls/csv.

     


    Resolution:

    This can be achieved by setting isIgnorePagination="true" for the report template while exporting to xls or csv only.  This will consider the export has one single page eliminating the repetition of headers on every page and printing the header on only first required page. 

    There is a report export property  "com.jaspersoft.jrs.export.csv.paginated"  and  "com.jaspersoft.jrs.export.xls.paginated"  that you can use to fulfill your need in addition to the ignorePagination option for JasperReports Server .

     

    You can set this property by using any one of below two ways:

    1) Use this property in your report template JRXML file to ignore pagination in CSV/XLS output for a report only.

    <property name="com.jaspersoft.jrs.export.csv.paginated" value="false"/>
    <property name="com.jaspersoft.jrs.export.xls.paginated" value="false"/>

     

    2) Set it in jasperreports.properties file.

    -  Navigate to jasperserver-proWEB-INFclassesjasperreports.properties file.

    - Add below two peoperty in the file to affect only csv/xls export output of report

       com.jaspersoft.jrs.export.csv.paginated=false
       com.jaspersoft.jrs.export.xls.paginated=false

    - Restart the Application server after making chnages in configuration file.

     


    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...