Jump to content
We've recently updated our Privacy Statement, available here ×
  • Fixing the empty cells issue in table component in HTML output


    prusyn
    • Features: Reports Version: v7.3, v7.3.0, v7.2, v7.2.2, v7.2.1, v7.2.0, v7.1, v7.1.1, v7.1.0, v6.7, v6.7.0, v6.6, v6.6.0, v6.5, v6.5.1, v6.5.0, v6.4, v6.4.3, v6.4.2, v6.4.0, v6.3, v6.3.9, v6.3.1, v6.3.0, v6.2, v6.2.2 Product: JasperReports® Library

    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

     


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