We are celebrating 15 years — and counting — of stories that are deeply researched and deeply felt, that build a historical record of what the city has been.
import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperExportManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
Here's a simple example to get you started with JasperReports:
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;
// Export the report JasperExportManager.exportReportToPdfFile(jasperPrint, "example.pdf"); } }
public Data(String name, int age) { this.name = name; this.age = age; }