Jump to content

How to Make TextField Stretch and Push Down Components Below in Jasper Reports


Renya

Recommended Posts

Hello, I am trying to create a report in Jasper Reports where a TextField can stretch according to dynamic content, and I want the elements below the TextField to move down when the TextField stretches.

Scenario Example:

  1. First Scenario - Short Text:

    +---------------------------------------------------+
    |  Description: This item is short                         |
    +---------------------------------------------------+
    
    Another Item Below
    
    
  2. Second Scenario - Long Text (Should Not Overlap):

    +---------------------------------------------------+
    |  Description: This item is very long and has a           |
    |  lot of details that need to be displayed in              |
    |  this report.                                                            |
    +---------------------------------------------------+
    
    Another Item Below (should move down)
    
    

Problem I’m Facing:

When the TextField with long text stretches, the content below (like “Another Item Below”) overlaps with the text above and does not move down as expected.

What I’ve Tried:

  1. Set Stretch Type to "Container Bottom" on the TextField.
  2. Set Text Adjust to "Stretch Height" on the TextField.
  3. Set the Position Type of elements below to "Float".

My Questions:

  1. Are there any additional settings or steps needed to ensure that the TextField stretches according to the content and elements below move down automatically, rather than overlapping?
  2. How can I make sure that the content below the TextField will not overlap when the text above gets longer?
  3. Is there a correct configuration example for handling such scenarios?

Thank you for your assistance!

Edited by Renya
Add tags
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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