Java Reference
In-Depth Information
The code will generate an Excel spreadsheet that looks like the following screenshot:
JasperReports includes two Excel exporters, JExcelApiExporter
and JRXlsExporter . It is preferable to use JExcelApiExporter
since JRXlsExporter does not support exporting images.
JExcelApiExporter is the newer Excel exporter.
JRXlsExporter is still included for backward compatibility.
Exporting to HTML
Exporting to HTML is another common requirement. The following example
demonstrates how to do it:
package net.ensode.jasperbook;
import java.io.File;
 
Search WWH ::




Custom Search