Jump to content
We've recently updated our Privacy Statement, available here ×

How to stop words getting cut off in text field Jasper?


shehab.nearat

Recommended Posts

I have a few textfields with parameters, so sometimes the parameters will be english sometimes french, so the length will be different. Im not sure how I can make sure for both english and french the words are never cut off, is this possible?

For instance say this is my text field with english text (imagine width ends after how):
 

Hello, how are you[/code]


Then french (widths ends after c):

Bonjour, ca va?[/code]


This is kind of a simplified example of what im facing, how can i get it to dynamically stretch such that it shows

Bonjour, cava?[/code]


I have tried setting these properties:

    <property name="net.sf.jasperreports.text.truncate.at.char" value="false"/>    <property name="net.sf.jasperreports.text.save.line.breaks" value="true"/>[/code]


and setting stretch with overflow to true.

If i try to hardcode the textfield size so that it works for english, it wont work for french and vice versa

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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