Jump to content
  • Error message "Invalid text height" shows no context, making debugging report very time-consuming.


    monty241070
    Assigned User teodord
    CategoryBug report
    PriorityNormal
    ReproducibilityAlways
    ResolutionOpen
    SeverityMajor
    StatusNew

    File:

    net/sf/jasperreports/engine/export/JRRtfExporter.java

     

    Around line 720, it says:

     

    throw new JRException("Invalid text height")

     

    For someone trying to resolve this exception, it takes a lot of time to trial-and-error until you have found the element that causes the problem.

     

    Suggested change:

     

    throw new JRException("Invalid text height of text '" + text.getOriginalText() + "' with height " + textHeight + " in element with height " + height)

     

    When you google on "Invalid text height" with JasperReports, you will see more users having problems analyzing this problem. Such as:

     

    http://stackoverflow.com/questions/2576061/rtf-formatting-in-jasper-reports



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