As you may already know from Documentation and other wiki articles that Ad Hoc report layout is controlled by Templates:
- https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v640/configuring-ad-hoc#Templates_and_Generators
- https://community.jaspersoft.com/wiki/sample-custom-ad-hoc-template-display-logo-v55
- https://community.jaspersoft.com/wiki/changing-ad-hoc-report-title-font-color-etc
If you want to change the looks and feel of Ad Hoc report you need to update corresponding Template. In this article, I will demonstrate how to update font size in Crosstab Ad Hoc report.
Font size is controlled by template styles. There are separate styles for Chart, Table and Crosstab. When editing Crosstab mode output you are working with CrosstabMeasureHeaderTextStyle, CrosstabHeaderLabelStyle, CrosstabDetailTextStyle etc. They are specific to elements styling in Rows, Columns, Title etc. However, most of them inherit CrosstabBaseTextStyle.
So, if you want to change font size for all elements in Crosstab, you should update CrosstabBaseTextStyle.
Also, there is a screencast showcasing how to create new custom template based on default 'Actual Size' template with updated CrosstabBaseTextStyle:
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 accountSign in
Already have an account? Sign in here.
Sign In Now