Jump to content
  • How to Make a Page Break at an Arbitrary Number of Lines In a Table Component


    Dhiraj Pahlani
    • Edited on:
    • Features: Reports Version: v8 Product: Jaspersoft® Studio

    Requirement:
    We are using a Table component in Jaspersoft Studio and would like to have a page break at the line that is a multiple of 20. Is this possible?

    Solution:
    We can achieve this requirement by creating a group and giving it an expression as below.

    <group name="pageBreakGroup" isStartNewPage="true">
    <groupExpression><![CDATA[(int)($V{REPORT_COUNT} - 1) / 20]]></groupExpression>
    </group>

    Attached pageBreakTable.jrxml report can be viewed for reference. The report can be run using the sample DB adapter in Studio.
    ___________________________________________________________________________________________________________________________________________
    Ref. Case #02249391

    table_page_break.jrxml


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