Jump to content

Recommended Posts

Posted

While generating PowerPoint using jasper Reports, how do we generate editable charts in PowerPoint wherein jrxml files are the input to return the data in the charts. Below is the piece of code used to export PPT using jasperreports JasperDesign jasperDesign = JRXmlLoader.load(inputStream); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, connection); JRPptxExporter pptxExporter = new JRPptxExporter(); pptxExporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint); pptxExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,reportData.getLocalPath()); In the above code JASPER_PRINT is used to print the object (ex: Pie chart) to the PPT. Would like to know if there is an way to generate editable object (ex:pie chart, Bar chart) Thanks in Advance

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

JR uses charting libraries that are not compatible with Powerpoint Charts, so it cannot generate a "native" or editable powerpoint chart when the exporter runs it will render the chart as an image and export that to the PPT slide.

The same happens with other exporters like PDF, XLS, DOC, etc.

See http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/ooxml/JRPptxExporter.html for more help on the options available for PPT exporter.

In theory you could extend and write your own exporter that will do what you want; but I do not know enough about OOXML to venture how feasible that may be. 

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