Jump to content
We've recently updated our Privacy Statement, available here ×
  • Force a Page Break After Every Group In Ad Hoc Table Report


    asimkin
    • Features: Ad Hoc, Reports Version: v7.1 Product: JasperReports® Server

    Use Case

    Customer created an Ad Hoc Table Report with a group. By default, the report may display more than 1 group in a single page.

    Customer would like to force a page break after every group of the report.


    Resolution

    Ad Hoc Engine automatically creates a Group element in the generated Ad Hoc Table Report if underlying Ad Hoc View has a group.

    The Group element has a property called 'Start New Page' (isStartNewPage) :

    http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRGroup.html#isStartNewPage--

    If this option is set to True, it forces a page break at the end of the group (that is, at the beginning of a new group).

    By default, the property is set to False in the generated Ad Hoc Report.

    This can be changed by opening the Ad Hoc Report in TIBCO Jaspersoft® Studio, 'Repository Explorer' tab and setting the property value to True:

    adhocreport_pagepergroup.png.fdcb07ec348864ad7ed0d1b768535f5c.png

    Solution tested with TIBCO JasperReports® Server v.7.1.0


     


    adhocreport_pagepergroup.png.4befcfe29697240efd02e527c304e20d.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...