Jump to content

Jasper file .jrxml is not compatible with new ARM server. We are trying to design the pdf


akash.shrimali

Recommended Posts

Hi there,

We are trying to design a pdf in which we have components such as labels and text fields from jasper studio but when we deploy on server, the spaces, alignment and indentation with what is available on jasper studio local is not matching with the design on server. For example : i have label with Size(LxDxI) in which the font size of this is 8px. when i try to give width to this size label , it is taking space and cutting text after D letter in this label. 

Could you please suggest some solution to overcome this.

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

Hi Akash, 

can you please provide more details of your environment on the "new ARM server"?

What OS + Version, what Version of Jaspersoft + Version, what version of java using for Studio and Server? 

Are you using a "font extensions" and is it the same on both: Studio and Server?  Your problem might be in that context when you have a bad behavior of labels, fonts and spacing. 

THX Thomas

 

 

Link to comment
Share on other sites

hI Thomas

Please find answers inline 

can you please provide more details of your environment on the "new ARM server"?
The linux version is following

 4.18.0-477.13.1.el8_8.aarch64 #1 SMP Thu May 18 08:55:50 EDT 2023 aarch64 aarch64 aarch64 GNU/Linux

What OS + Version, what Version of Jaspersoft + Version, what version of java using for Studio and Server? 
OS version : linux , Jaspersoft version : 6.20 , java version : "17.0.2" 2022-01-18 for both studio and server

Are you using a "font extensions" and is it the same on both: Studio and Server?  Your problem might be in that context when you have a bad behavior of labels, fonts and spacing. 
No we are not using font extensions on both studio and server. 

 

Link to comment
Share on other sites

hI Thomas

Please find answers inline 

can you please provide more details of your environment on the "new ARM server"?
The linux version is following

 4.18.0-477.13.1.el8_8.aarch64 #1 SMP Thu May 18 08:55:50 EDT 2023 aarch64 aarch64 aarch64 GNU/Linux

What OS + Version, what Version of Jaspersoft + Version, what version of java using for Studio and Server? 
OS version : linux , Jaspersoft version : 6.20 , java version : "17.0.2" 2022-01-18 for both studio and server

Are you using a "font extensions" and is it the same on both: Studio and Server?  Your problem might be in that context when you have a bad behavior of labels, fonts and spacing. 
No we are not using font extensions on both studio and server. 

Link to comment
Share on other sites

Hi,
as Thomas said you should try to leverage the "font extensions" JasperReports mechanism in order to properly use fonts sizing / alignment.
That said, the output of a command like "uname -a" (or similar) does not help in understanding which Linux flavour you are using (i.e Debian, Mint, Ubuntu etc).
There is no indication if you are using a Jaspersoft Studio standalone product or a plug-in version with a specific Eclipse version. The 6.20 numbering is generic, please specify the correct one including the minor qualifier.
Also no indication of the currently installed version of JasperReports Server (where the report gets deployed) is present.

Regards,
Massimo.

Link to comment
Share on other sites

Hi Massimo,

I am using default font sans serif from static text.
The Linux version i am using is RHEL8 linux.
The current version of jasper studio standalone is Jaspersoft® Studio 6.20.5 - Visual Designer for JasperReports 6.20.5.
I am deploying dot jasper (.jasper) files on server by compiling .jrxml.
we are displaying it in pdf form on U.I.

Link to comment
Share on other sites

  • 3 weeks later...

Hello Akash,
JR and by extension JSS and JRS is a pixel-perfect report engine. If you see a mismatch between the jrxml template and the pdf output, this means something is happening when you export the .jasper into a report.
As mentioned before it could be a font issue (since each font uses more or less space to display the same text) and different OS work with fonts differently so you need to check on that.
But there could be other properties such as the overflow property that can affect the font size as well.
Could you share the jrxml, the data to run the report, and eventually a screen recording or screenshots showing the issue so we can replicate the issue what you are describing is not standard behavior of the software. 

Cheers

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