magsam Posted August 23, 2017 Share Posted August 23, 2017 I have configure new font family in JasperSoft Studio 6.4.0 .. It works all fine when I generate the report in Jasper Studio. I saved the jar in the classpath variables of my webproject - I use eclipse oxygen. When I start the report in my webapplication I get the bug: context net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $F{Adressen} . The report has no path to the new font. How can I make the path to the new font available.?Thanks for the help Regards Peter Link to comment Share on other sites More sharing options...
H Mendoza Posted August 24, 2017 Share Posted August 24, 2017 Chapter 9 of the Studio User Guide has some information that may help; also, you could try creating a font jar. Link to comment Share on other sites More sharing options...
magsam Posted August 25, 2017 Author Share Posted August 25, 2017 Thank you for yout advice. I have done exactly like it‘s written in chapter 9. It works fine in jasper standalone. In combination with my webapplication i get now this message Information: context net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "Arial Unicode MS" is not available to the JVM. See the Javadoc for more details. It is in the JVM of Jasper but not im the webapp [/code] Some more details. The maven dependency <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports</artifactId> <version>6.4.1</version> </dependency> <dependency> <groupId>net.sf.jasperreports</groupId> <artifactId>jasperreports-fonts</artifactId> <version>6.0.0</version> </dependency> I call jasper with final JasperPrint jasperPrint = JasperFillManager .fillReport(dateinameA, hm, gCon); // Export to PDF. JasperExportManager.exportReportToPdfFile(jasperPrint, outFileName); Jasper calls C:UserspeterJaspersoftWorkspaceMyReports No connection to the font. The „Arial Unicode MS.jar“ is stored in the Java Build Path of my project. Here you can see jasper combined with primefaces in my web app. Call http://osretail.de/osRetail/ choose Sprache (language) english, login ,choose in the menue reports, click on report and in this dialog click on the button beside the dropdownlist (dont change the dropdownlist). Now you will understand my problem. Maybe you have a tipp. regards from Bavaria Peter 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