We want to to convert to using Aspose for exporting Word documents. I have downloaded a trial version and imported it into our project but I can not get it to work.
My code looks like this:
JRExporter exporter = new AWDocxExporter();
exporter.setParameter(AWExporterParameter.OVERLAP_RESOLUTION_METHOD, AWExporterParameter. OVERLAP_RESOLUTION_METHOD_PUSH_ITEMS);
But when running this code I get the following stacktrace:
2014-06-17 14:46:56,022 [btpool0-12] ERROR se.excito.ecm.report.ECMLogger - java.lang.NullPointerException
at com.aspose.words.jasperreports.AWAbstractExporter.exportReport(Unknown Source)
What can be the problem? Using other exporters in JasperReports works fine, the problem is only with Aspose.
- Please supply us with the Jrxml files along with xml/csv data source
- Please supply us with the .jrprint file of your jrxml
Thanks for the reply. I have attached the files you asked for. I had to zip the jrxml file since the forum software did not allow attachments with suffix .jrxml
Never mind this issue. I found the cause of my problem. I was using the most recent version of JasperReports (5.6.0). This version does not seem to work with Aspose.Words.
I downgraded to JasperReports version 5.5.0 and then the export started working.
Thanks for sharing the detail. It is nice to hear from you that you have found the solution of your issue.
However, I have managed to reproduce the same issue using JasperReports (5.6.0) at my side. For the sake of correction, I have logged this problem in
our issue tracking system as WORDSJSP-144. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Thanks for your inquiry. I have already answered your query here in this post. Please follow that thread for further proceedings.