Jump to content
We've recently updated our Privacy Statement, available here ×

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


tblalock34gmail.com

Recommended Posts

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);

 

JRList.add(jasperPrint);

 

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.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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