How to use html5 jasper report from java layer without publishing report to jasper server

寵の児 提交于 2020-01-04 21:14:43

问题


I am new to jasper and highcharts. I have designed my html5 report using jaspersoft license version.

I want to use that html5 jasper report from my java application without publishing it to jasper server.

Which jars I need to include to fill that html5 jasper report from java. so that I will generate html markup of report.

I have tried these jars

jasperreports-5.0.0.jar jasperreports-chart-themes-5.0.0.jar jasperreports-fonts-5.0.0.jar jasperreports-fusion-5.0.0.jar jasperreports-highcharts-5.0.0.jar jasperreports-pro-5.0.0.jar and some more jasper server jars.

and code

String fileName = "C://test.jasper";
File file= new File(fileName);
InputStream inputStream= new FileInputStream(file);
JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream, (new HashMap<String,        
Object>()), databaseConfiguration.getConnection());
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());

But after running this it ask me some other jars/configuration of jasper server. I am adding more jars and configuration from jasper server but still not able to fill the report.

I cannot use jasper server or publish report on jasper server.

Please help me.Some code snippet or link to documentation will also be appreciated.

Many thanks in advance

来源:https://stackoverflow.com/questions/22858203/how-to-use-html5-jasper-report-from-java-layer-without-publishing-report-to-jasp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!