asperreport生成html,Excel,PDF报表,数据源使用List
jasperreport中可以使用List作为数据源,使用格式如下.
List list=this.customerDao.getAllCustomer(); //得到所有客户
JRBeanCollectionDataSource ds = new JRBeanCollectionDataSource(list);
JasperPrint jasperPrint = JasperFillManager.fillReport(
reportFilePath, parameters, ds);
得填充数据后,即可输出显示到PDF,Excel,Html
到PDF:
682

被折叠的 条评论
为什么被折叠?



