Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to split XLS document according to some condition


    akonkin
    • Features: Exporters Version: v5.6.1

    The desired solution can be implemented with the export to XLS and the properties that I quote below:

    net.sf.jasperreports.export.xls.break.before.row
    net.sf.jasperreports.export.xls.break.after.row
    

    With these properties you can perform the export to XLS, but split it to separate worksheets according to the aforementioned properties in the report.

    Below I give you a link to the documentation regarding this property:

    http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.xls.break.before.row

    break_before_row_property.png.ec73ad388c7e0ba177e03eb6c005321f.png

    Please find a sample of the report that is based on Foormart database.

    Best regards,

    Alex

    break_before_row_property.png.dd794e1391a461df3f2463ea4b5917a2.png

    report2.jrxml


    User Feedback

    Recommended Comments

    Hi Alex,
    I was under similar situation. So this is what I did to solve my problem:

    1. Add a blank 'Text Field' element. 
    2. Added the property (net.sf.jasperreports.export.xls.break.after.row) you mentioned about to that text field element.
    3. The added 'Print When' expression (the conditional expression that you would like to add) to that blank text field. 
    Link to comment
    Share on other sites



    Guest
    This is now closed for further comments

×
×
  • Create New...