Aspose.Slides for JasperReports

Product Information

Welcome to the Aspose.Slides for JasperReports documentation!

Aspose.Slides for JasperReports is the only known solution on the market that makes possible exporting reports from JasperReports and JasperServer to Microsoft PowerPoint PPT and PPS formats. All report features are converted with the highest degree of precision to Microsoft PowerPoint presentations.

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

Aspose.Slides for JasperReports internally uses our 100% pure Java libraries Aspose.Slides for Java and Aspose.Metafiles for Java - the 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.

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

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.