andysusanto Posted September 20, 2006 Share Posted September 20, 2006 hai, i create a chart and some text data with a jasperreport, and i would like to export that report into a xls file, file xls is create but a chart is not exist in xls file. How to import a report that contain a chart into xls ? this my code : JRXlsExporter exporterXLS = new JRXlsExporter(); exporterXLS.setParameter(JRXlsExporterParameter.JASPER_PRINT, jasperPrint); exporterXLS.setParameter(JRXlsExporterParameter.OUTPUT_FILE_NAME, "c:/".concat(strSavedFileName).concat(".xls")); exporterXLS.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE); exporterXLS.setParameter(JRXlsExporterParameter.IS_AUTO_DETECT_CELL_TYPE, Boolean.TRUE); exporterXLS.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE); exporterXLS.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE); exporterXLS.exportReport(); Link to comment Share on other sites More sharing options...
lucianc Posted September 20, 2006 Share Posted September 20, 2006 JRXlsExporter does not export images because of POI-HSSF limitations. You can try the JExcelApiExporter exporter, which is able to export images (and charts are exported as images). Regards,Lucian Link to comment Share on other sites More sharing options...
gr4nt4 Posted October 12, 2007 Share Posted October 12, 2007 Worked fine, many thanks:) 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