What are my options for exporting reports containing HTML 5 charts to PDF and Excel?

We are currently working on an upgrade from 6.3 to 7.8 and we are having an issue exporting report that contain a HTML (highchart) component. In 6.3, we were able to export reports into PDF and Excel using the following code:

String strReportName = strReportDir + "test_report.jrxml";
System.out.println("strReportName= " + strReportName);
JasperReport jasperReport = JasperCompileManager.compileReport(strReportName);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, reportParameter, connection);


Using java 8, we are getting this error when trying to export a report with a HTML5 chart:

Caused by: net.sf.jasperreports.engine.JRRuntimeException: Chrome and/or PhantomJS not properly configured for server side rendering

I know there are references to Chromium in the server install guide. Do I need Chromium to export from a standard java app (non web)? Are there additional properties that need to be included in the jasperreports.properties file to make this work.

Thanks in advance for your help.
tblalock34_1's picture
Joined: Sep 29 2020 - 10:47am
Last seen: 2 months 5 days ago

0 Answers:

No answers yet