inothings Posted May 6, 2015 Posted May 6, 2015 Sample code as below: params.put(JRParameter.REPORT_LOCALE, ph.getLocale()); JasperPrint jp = JasperFillManager.fillReport(report, params, ds); .... JRXlsExporter exporter = new JRXlsExporter(); exporter.setParameter( JRXlsExporterParameter.IS_DETECT_CELL_TYPE, true); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp); exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, stream); exporter.exportReport();
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