Jump to content

Dynamic height on detail band


Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Assuming you have dynamic text in text fields, you can set the isStretchWithOverflow attribute of the <textField> element to true. This will cause the text field to expand to accomodate the text.


Make sure that any elements below the text field have a positionType of "Float", otherwise the text from the text field will be displayed "on top" of the other elements.


For more information, check out my book, JasperReports For Java Developers. Available at Amazon or directly from the publisher.



Link to comment
Share on other sites

  • 8 months later...
  • 2 months later...
  • 9 years later...


It also worked for me..


<band height="29" splitType="Stretch">

<textField isStretchWithOverflow="true">
<reportElement x="0" y="3" width="72" height="20" uuid="61b00dae-e05c-4971-a754-f635a3043d57"/>
<textElement textAlignment="Center">
<font fontName="Tahoma" size="10"/>



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