Hello,
I am using the evaluation version of the JasperReport PDF Exporter to export from jasper 5.6.0 to PDF. My code below, which is modeled after the example code, but uses the jr5_5_0 package, produces a NoSuchMethodError.
My Code:
com.aspose.pdf.jr5_5_0.jasperreports.JrPdfExporter exporter = new com.aspose.pdf.jr5_5_0.jasperreports.JrPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, file.toString());
exporter.exportReport();
Error:
java.lang.NoSuchMethodError: com.aspose.pdf.jr5_5_0.jasperreports.JrPdfExporter.setInput()V
at com.aspose.pdf.jr5_5_0.jasperreports.JrPdfExporter.B(Unknown Source)
at com.aspose.pdf.jr5_5_0.jasperreports.JrPdfExporter.exportReport(Unknown Source)
I wonder if I should be using a different calling method as the setParameter is marked as deprecated, but I don't have any API or user documentation that provides a better/different approach.
Please advise.