Free Support Forum - aspose.com

Aspose.Words for Jasper - HTML Exporter doesn't work- cannot set HtmlExporterImages folder

Since version 1.2.1, it is not possible the export to HTML. the exception below is thrown, but there is no way to set folder.

net.sf.jasperreports.engine.JRException: Image file cannot be written to disk. When saving the document to a stream either HtmlExportImagesFolder should be specified or custom streams should be provided via HtmlExportImageSaving event handler. Please see documentation for details.

at com.aspose.words.jasperreports.AWAbstractExporter.exportReport(Unknown Source)

Best regards,

Yam Shal-Bar

RadView

Thanks. This will be fixed in the 1.3.0 version that is going to be released very soon, as well as the bottom margin issue.

Hi Dmitry

In the new Version you still can't set folder for the images,so what you get is report without the images.

There is suppose to be a folder of images beside the html file.

Regards

Shay

Radview

Hi,

Actually this is a limitation mentioned at

http://www.aspose.com/documentation/jasperreports-exporters/aspose.words-for-jasperreports/known-limitations.html

The reason is that when running the exporter on JasperServer remotely, you will not be able to view images anyway because they can't be sent along with the HTML response. But I agree that it should be possible when exporting reports to HTML locally. Do you want me to implement this option?