fortesinformatica / jasper-rails

JasperReports on Rails
MIT License
63 stars 36 forks source link

allow .xls generation #5

Closed plentz closed 11 years ago

plentz commented 12 years ago

jasperreports already have the feature, is "just" the effort to use it.

ionosphere commented 11 years ago

+1 for odt / rtf and other.

// 1- export to ODT JROdtExporter exporter = new JROdtExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "foo.odt" );

// 2- export to HTML JasperExportManager.exportReportToHtmlFile(jasperPrint, "foo.html" );

// 3- export to Excel sheet JRXlsExporter exporter = new JRXlsExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "foo.xls" );

plentz commented 11 years ago

@ionosphere you can send a pull request with those changes, it make it easier to the maintainer :)

msaraiva commented 11 years ago

See #24 or the mailing list for more info.