Jump to content
Changes to the Jaspersoft community edition download ×

Word wrap in static text

2004 IR Help

Recommended Posts

By: msakbar - msakbar

Word wrap in static text

2005-04-14 09:42

I am using the staticText element for column headings, and I would like to wrap the text if it is too large to fit... however, in the docs it seems that only the textField element has a isStretchWithOverflow attribute in it. How would I accomplish the same behavior for a staticText element?







By: msakbar - msakbar

RE: Word wrap in static text

2005-04-14 11:50

Never mind - i figured out that it wraps the text automatically, you just have to make sure that the height of the reportElement is large enough to have 2 rows (or however many you need).


Also, make sure the band's height is larger than the reportElement's height otherwise the reportElement will not print.


Hope this is clear, I'm still very new to JasperReports...

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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