o_AungMyaMaw Posted September 18, 2019 Share Posted September 18, 2019 Hello everyone,I am using jasperreports 6.8.0 with itext-2.1.7.js6.jar and itext-asian-5.2.0.jar.When export a pdf report in local environment (Windows 10, WebSphere Application Server traditional 9.0), it works correctly. But export in server environment (IBM i 7.3, WebSphere Application Server traditional 9.0), some text fields could not show data and becomes blank.Seems like line spacing setting does not work properly, space between two lines in report exported form server environment is wider than local one.I am using lineSpacing = "Fixed" and lineSpacingSize = "8.0".I would like to request any suggestions to resolve this.Thanks in Advance. Link to comment Share on other sites More sharing options...
swood_1 Posted September 18, 2019 Share Posted September 18, 2019 Could it be a difference in the deployed fonts?Do the reports look correct in Studio? Link to comment Share on other sites More sharing options...
o_AungMyaMaw Posted September 19, 2019 Author Share Posted September 19, 2019 Thank you for reply.Could it be a difference in the deployed fonts?>> I deployed same fonts (MS Mincho.ttc, MS Gothic.ttc) and font face is exactly same in both reports. Although using same font, some fields can display and so could not. It could display if discreased the font size or increased the height of label/text field. PS. In IBM i 6.1, it works correctly. Facing this problem after upgraded to IBM i 7.3.Do the reports look correct in Studio?>> Yes, it look correct. Link to comment Share on other sites More sharing options...
C-Box Posted September 19, 2019 Share Posted September 19, 2019 Have you already tried to toggle the special export property at report level: net.sf.jasperreports.export.pdf.force.linebreak.policy[/code]perhaps that helps!?hth + regardsC-Box Link to comment Share on other sites More sharing options...
o_AungMyaMaw Posted September 20, 2019 Author Share Posted September 20, 2019 C-BoxThank you for your advice.I also tried the linebreak.policy and the result was same.I tried to use .ttf font instance of .ttc and it works properly.Refered the below link:https://community.jaspersoft.com/wiki/custom-font-font-extensionBut font was garbled for MS Gothic.ttf and now trying to solve this. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now