Issue:
[toc on_off::hide=1]
A user has this report they migrated from 6.2.0 to 7.1 and now the report is rendered with empty table cells. All the pages are there, but data is not visible. When exporting to PDF the data is displayed just fine.
Resolution:
The problem is caused by the padding set in the default style of the report.
Starting with JasperReports Library 6.2.2, the default style is used as parent for other styles, in addition to being used for elements with no style set. Thus the padding applies to table cells and in HTML it causes the cell contents not to be displayed because there's no space for both the padding and the contents. Defect JRL-1414 has been submitted for this usecase.
There are two workarounds for for the problem. The first is to remove the padding from the default style in the report. The second is to set the following property in jasperreports.properties (this would of course apply to all reports):
net.sf.jasperreports.styles.inherit.from.default=false
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