Hi Jerome,
Thanks for your inquiry. Unfortunately, I have not understood your query. It would be great if you please share some more detail about your query along with following detail. I will investigate the issue on my side and provide you more information.
- Please supply us with the Jrxml files along with xml/csv data source
- Please supply us with the .jrprint file of your jrxml
- Please supply us with the Aspose.Words code from your application.
- Please attach the output document that shows the undesired behavior.
- Please share to which file format you are exporting your Jrxml file
As soon as you get these pieces of information to us we’ll start our investigation into your issue.
- models (jrxml)
- jasperPrint serialized (xml)
- result with Aspose Docx Exporter .
- result with JasperReports built-in Docx Exporter
- test file (load JasperPrint and export with Aspose Exporter)
Hi Jerome,
Thanks for sharing the detail. I have tested the scenario at jasperreports 5.1.0 using shared code and jasperPrint1.xml and have faced the following exception.
Exception in thread “main” net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.base.JRBasePrintText cannot be cast to net.sf.jasperreports.engine.fill.JRTemplatePrintText
at com.aspose.words.jasperreports.AWAbstractExporter.exportReport(Unknown Source)
It would be great if you please share the .jrprint file of your jrxml here for investigation purposes. I appreciate your cooperation in advance for this.
Hello,
Hi Jerome,
Thanks for your feedback. In case you are using an older version of Aspose.Words for JasperReports, I would suggest you please upgrade to the latest version (v2.0.0) from here and let us know how it goes on your side.
If the problem still remains, please share the extracted jrprint file for investigation purpose.
Hello Tahir,
Hi Jerome,
Thanks for sharing the detail. While using the shared code with jasperPrint1.xml/jasperPrint2.xml, I am getting following exception. The exception is also thrown while using jasperreports 5.5.
Exception in thread “main” net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.base.JRBasePrintText cannot be cast to net.sf.jasperreports.engine.fill.JRTemplatePrintText
at com.aspose.words.jasperreports.AWAbstractExporter.exportReport(Unknown Source)
For the sake of correction, I have logged this problem in our issue tracking system as WORDSJSP-142. 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.
jerome.benoit:
The problem : with the Aspose Docx Exporter, some data are not displayed in the first export page.
All the others pages are correct.
Note 1 : we use the batch mode to generate (JRExporterParameter.JASPER_PRINT_LIST).
Note 2 : with the built-in JRDocxExporter, all data are displayed on all the pages.
I am afraid, I have found any .Jrprint file in documents shared in this forum thread. To generate the document like myResultWithAspose.docx, please share the .jrprint file.