We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Words JasperReports Deprecated methods

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);

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.


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());

What was fixed in 2015 with WORDSJSP-167?


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()