today it is my first time to try Aspose.Words for JasperReports. But I got net.sf.jasperreports.engine.JRException.
The code is very simple:
… // jasperPrints have been generated
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrints);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
exporter.exportReport();
But similar code is fineà //jasperPrints have been generated
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
JRExporter exporter = new JRRtfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrints);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
exporter.exportReport();
I don’t know whether it is related to license issue.
I put aspose.words.jasperreports.jar into /lib and also copy LICENSE.txt in web-inf, which I download from web.