Jump to content
Changes to the Jaspersoft community edition download ×

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


sharmavd1983

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • 3 years later...

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