Jump to content
Changes to the Jaspersoft community edition download ×

JasperReports Evaluation Problems

Recommended Posts

By: Pankaj Udham - pdham

JasperReports Evaluation Problems

2002-12-10 15:56


I am evaluating JasperReports for the first time.


I am trying the FontsReport.


It compiles,prints,converts to html and xls fine.


But when I convert to pdf I get the following error


E1.4.1_01libhtmlconverter.jar;F:J2SE1.4.1_01libtools.jar;F:J2SE1.4.1_01demopluginjfcJava2DJava2Demo.jar;F:J2SE1.4.1_01demojfcJava2DJava2Demo.jar" FontsApp -Tpdf -FC:PotentInstallDirresFontsReport.jrprint

dori.jasper.engine.JRException: Could not load font from location : COMIC.TTF




* WARNING: Failure using Thread.currentThread().getContextClassLoader() *


* in JRLoader class. Using JRLoader.class.getClassLoader() instead. *




at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:850)


at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:316)


at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:270)


at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:214)


at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:135)


at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:101)


at FontsApp.main(FontsApp.java:156)


Note that:

I am using 1.4.1_01 - jre/jdk on Windows 98

All fonts are installed properly under control panel/fonts.

The sample pdf file itself (the generated one in the sample directory) displays fine via adobe acrobat.

So what can it find this particular font ?







By: Teodor Danciu - teodord

RE: JasperReports Evaluation Problems

2002-12-10 23:11




Make sure that the file "COMIC.TTF" is either in

the current directory or in the classpath when you

export to PDF.


Or you could modify the XML report design to

indicate its location in the Windows directory.


If you run the samples using ANT, the font files

are placed in the demo/fonts directory and are

available in the classpath when you launch the

demo applications.


I hope this helps.


Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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