Jump to content

Recommended Posts

Posted

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();

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...