Jump to content
  • Rectangle doesn't stretch to next page

    Assigned User teodord
    CategoryBug report
    I have created a reported with an alternating background color for columns (see attachement), using JR 2.0.1 The background color is implemented with a rectangle which should stretch with the band height. The text field has stretchwithoverflow set. As you can see on the second page, the text field is stretched, however the rectangle for the backround is not stretched, causing the alternating background color for the columns to be interrupted.

    Attachments: PoPositionBoQ.jrxml

    User Feedback

    Recommended Comments



    You should set isPrintWithOverflow="true" for your rectangle, so that on the next page it get printed again.

    However, you should probably use the backcolor of the text field and make it mode="Opaque", instead of using additional rectangles.


    I hope this helps.



    Link to comment
    Share on other sites

    Hi Teodor,

    I am constructing the rectangle in code using a JRDesignRectangle. Unfortunately a JRDesignRectangle doesn\'t have a method setStretchWithOverflow() method like JRDesignTextfield does. Also, setting the background color of the text field is also not really an option, since we use this code also for other situations where eg a column has two textfields below eachother with some spacing.


    kind regards,


    Link to comment
    Share on other sites

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