Jump to content
We've recently updated our Privacy Statement, available here ×
  • Reprint page Header and Footer on each page with report Summary band


    stasp
    • Product: JasperReports® Server

    By default, if report Summary stretches onto multiple pages, the Page Header and Page Footer bands will only get printed on the first page of the Summary. You can change this behavior with one of the approaches below.

    For reports created in TIBCO Jaspersoft® Studio

    In Jaspersoft® Studio this can be achieved by simply checking the "Summary With Page Header and Footer" option in report properties:

    summary_with_header_and_footer.png.352d2e3c76bbce8d89d8b7583b977f64.png

    If you need to add the property to report JRXML directly, you have to put it in <jasperReport> tag:

    <jasperReport ... isSummaryWithPageHeaderAndFooter="true" uuid="5313629d-f744-4864-b7a2-b6298125fbc8">
    ...
    </jasperReport>

    For Ad Hoc reports

    When exporting Ad Hoc Reports to output formats with pagination you may notice that Page Header is also only printed on the first page. If you want it repeated on each page, create a custom Ad Hoc Template in Jaspersoft Studio, and in that template check the "Summary With Page Header and Footer" option described above. Then use this template when saving Ad Hoc reports.

    You can find more information on using custom Ad Hoc Templates in the following section of  TIBCO JasperReports® Server Admin Guide:
    https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v71/configuring-ad-hoc#Templates_and_Generators

    Also here are a few sample use cases of creating Ad Hoc Templates:
    https://community.jaspersoft.com/wiki/sample-custom-ad-hoc-template-display-logo-v55
    https://community.jaspersoft.com/wiki/change-ad-hoc-report-font-style-using-templates

    summary_with_header_and_footer.png.b983f4913c9fc914e5c809c1353fa82d.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...