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

Why Text Filed value will be truncated if the application is running on linux


marco235

Recommended Posts

Dear all,

I've created a report using iReport Designer 5.0.0 on Windows XP Professional SP3 with Java 1.6.0_23. My application uses jasperreports 5.0.1. When I run my application on my local PC (XP), the created PDF file looks fine:

 

figure-1.PNG.578b3e75c2154c03034a764e53c3de51.PNG

 

If I deploy my application on our test server (Linux 2.6.27.19-5-xen #1 SMP 2009-02-28 04:40:21 +0100 x86_64 x86_64 x86_64 GNU/Linux, Java 1.6.0_14, JBoss 4.2.3.GA) and I'm creating the same PDF document using the same data, some of the Text Fileds are truncated:

 

figure-2.PNG.d13626041c320163f8dc1153e836fc97.PNG

 

For example, if you look at the Text Field "1 Kopfdaten des e-VD / ..": at the first figure the whole text is painted ("1 Kopfdaten des e-VD / Ausfalldokuments"). At the second figure the text is truncated and only "1 Kopfdaten des e-VD /" is painted. To see that the Text Field is big enugh for the Text I set a border to the Text Field.

 

I'm not sure why it is so different on Windows/Linux and how can I fix it. On my report I have some more Text Fields with this problem.

 

The Text Field is defined as follow:

 

figure-3.PNG.1c9efaaa83565ea35a1140742fa248c1.PNG

 

I also tried to use the option isStretchWithOverflow="true". Than the text will not be truncated anymore, but if the text is greater than the Text Filed, the Text Field will be stretched to a second line.

 

I'm looking for an option to display as much text as possible and if the text reach the end of the field it can be truncated but not jump to the next line.

Many thanks for your help in advance.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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