I am using the following code to generate the doc file for a Jasper report, however, exporter.setParameter is now deprecated.
final AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, aPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, aOutputStream);
exporter.exportReport();
What is the correct way to export to the doc format using the new format of setExporterInput and setExporterOutput methods?
Hi there,
Thanks for your inquiry. I am in communication with the product team about your query. We will get back to you asap.
Hi there,
Thanks for your patience. We
logged this problem in our issue tracking system as WORDSJSP-167. You
will be notified via this forum thread once there is any update
available on this issue.
We apologize for your inconvenience.
The issues you have found earlier (filed as WORDSJSP-167) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Great! Thank you so much for addressing this.
Hello,
It is 2022 and the usage of the deprecated method setParameter is still the only way to use AWDocExporter and AWDocxExporter? This is what the documentation of the current version says:
The following code sample demonstrates the usage of the class:
AWDocExporter exporter = new AWDocExporter();
exporter.setParameter(AWExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(AWExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
exporter.exportReport();
What was fixed in 2015 with WORDSJSP-167?
Regards,
Boris
Hi @borelli
Yes, setParameter is still the only way to use AWDocExporter and AWDocxExporter.
In 2015 we replaced deprecated setParameter(JRExporterParameter) to our setParameter(AWExporterParameter).
All Exporter in AW for JasperReport uses AWExporterParameter, and we should rewrite all code to awoid deprecated setParameter() and use new setExporterInput(), setConfiguration​(), setExporterOutput()