blackbeam Posted May 8, 2009 Share Posted May 8, 2009 Hi Folks,Maybe I missed something about JRRtfExporter. I created a report containing a pie chart and an image, and they could be exported to PDF, XLS, HTML successfully. But they disappeared in the RTF output, no errors.The following is the code of exporting to XLS and RTF, the XLS one works. JExcelApiExporter xlsExporter = new JExcelApiExporter(); xlsExporter.setParameter(JRExporterParameter.JASPER_PRINT, jrprint); xlsExporter.setParameter(JRXlsAbstractExporterParameter.IS_IGNORE_GRAPHICS, Boolean.FALSE); xlsExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, TEMP_PATH + "report_1.xls"); xlsExporter.exportReport(); JRRtfExporter rtfExporter = new JRRtfExporter(); rtfExporter.setParameter(JRExporterParameter.JASPER_PRINT, jrprint); rtfExporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, TEMP_PATH + "report_1.rtf"); rtfExporter.exportReport();I was wondering should I do anything similar to IS_IGNORE_GRAPHICS=false to RTF reports? I couldn't find any parameters for that.Your help would be appreciated! Thanks.Johnny Link to comment Share on other sites More sharing options...
blackbeam Posted May 8, 2009 Author Share Posted May 8, 2009 BTW, I'm using JasperReports 2.0.2 Link to comment Share on other sites More sharing options...
lucianc Posted May 20, 2009 Share Posted May 20, 2009 Does this happen with recent JR versions as well?Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now