Product Overview

Product Description

JasperReports and JasperServer do not have built-in abilities to export reports as Microsoft PowerPoint presentations, but Aspose.Slides for JasperReports, gives you access to two additional export formats:

  • PPT – PowerPoint Presentation via Aspose.Slides
  • PPS - PowerPoint Show via Aspose.Slides
  • PPTX – PowerPoint Presentation via Aspose.Slides
  • PPSX - PowerPoint Show via Aspose.Slides

Aspose.Slides for JasperReports internally uses our 100% pure Java libraries Aspose.Slides for Java and Aspose.Metafiles for Java, world-class libraries for server-side presentations and metafiles processing.

Aspose.Slides for JasperReports makes it possible to export any report in PPT or PPS format.

Output Example

The JRPptExporter class extends the JRAbstractExporter class so it can be used in the same way as any other standard exporters. This short example shows typical code and screenshot of a report viewed in MS PowerPoint. Detailed examples can be found in the provided demo reports.

Java


    File sourceFile = new File(fileName); 

   JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

   File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ppt");

   JRPptExporter exporter = new JRPptExporter();

   exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

   exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());

   exporter.exportReport();



Presentation generated with JasperReports xmldatasource demo

todo:image_alt_text