Jump to content
We've recently updated our Privacy Statement, available here ×
  • How to Change the Default Band Used for Ad Hoc Chart Reports from 'Title' to 'Summary'?


    asimkin
    • Features: Ad Hoc, Charts Version: v7.5, v7.2 Product: JasperReports® Server

    Issue Description

    Customer created a custom Ad Hoc Template to dispay a logo in a report Page Header band using the article below:

    https://community.jaspersoft.com/wiki/sample-custom-ad-hoc-template-display-logo-v55

    But it turned out, in case of Ad Hoc Chart, the logo displayed below the chart but not in the Page Header.

    Customer would like to have it fixed in display the logo above the chart.


    Resolution

    By default, TIBCO JasperReports® Server places a Chart in Title band, while Table and Crosstab are generated in Summary band.

    As Page Header band follows Title Band, the logo displayed at the bottom of the chart.

    In order to make Ad Hoc Report Generator to place Chart in Summary band, a placeholder Static element with Key value ADHOC_COMPONENT_KEY should be added to the band

    summarybandelement.png.0094410297670e1cebbc87883275f15d.png

    When added to Summary band, this element will be substituted with chart during report fill process:

    logo.png.d511ea42bd686de3cdafc8607035f6b5.png

    Solution tested with TIBCO JasperReports® Server v.7.2.0 , 7.5


    AS-20200212, case 01425780


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