Problem date report pfd

0

Hello

 I have a problem when I run a report to pdf .

The jasper is running in a tomcat.

version jasper: 

JS_VERSION=6.1.1
JS_sample.jdbc.driver=com.mysql.jdbc.Driver
JS_sample.jdbc.url=jdbc:mysql://localhost:3306/mydb


OS_BUILD_DATE_STAMP=20150911
OS_BUILD_TIME_STAMP=1659


The date doesn't show correctly because one of the digits is missing as you can see in the picture

Is there some way to change the size or the font in the bundles files. Example : jasperserver_config.properties

Thanks in advance 

Attachments: 
daniel.blanco's picture
Joined: Nov 29 2021 - 1:20pm
Last seen: 1 month 1 week ago

3 Answers:

0

Are you creating the report in Studio?

If Yes, I believe you can specify the date format in the pattern expression settings of the text field.

 

- Text Field Setting Sample

 

- Report Preview

 


I hope this is useful to you.

 

yama818's picture
441
Joined: Aug 17 2018 - 3:48pm
Last seen: 5 hours 34 min ago
0

Hello 

The first thanks for your answer but I thing that the problem is more complicated

We have 3 servers with the same level of tomcat, postgress and apache.

But in the same report we get different output

we imported the same report in the servers.

image the date has been cuted because the last numbers doesn't appers.

image2 the date appers with the correct digits but appears the first digit of the hour

image3 it works

I compare the 3 configuration tomcat, jasper and postgress and I don't find anything

Can you help me please ?

Thanks in advance

 

Attachments: 
AttachmentSize
Image icon error date cuted181.86 KB
Image icon date is too large203.92 KB
Image icon it works201.32 KB
Image icon cuted.png192.11 KB
Image icon large.png216.43 KB
daniel.blanco's picture
Joined: Nov 29 2021 - 1:20pm
Last seen: 1 month 1 week ago
0

Setting the 'Text Adjust' of the text field to 'ScaleFont' may help.

 

Alternatively, embedding the font in the PDF may help.
https://community.jaspersoft.com/wiki/how-embed-fonts-jasperreport-irepo...
https://community.jaspersoft.com/wiki/how-embed-pdf-report-output

 

yama818's picture
441
Joined: Aug 17 2018 - 3:48pm
Last seen: 5 hours 34 min ago
Feedback