0
是否可以在一批中打印多个报告?用jaseprreportts打印多个报告
我目前与下面的代码
String report = "someReport.jasper";
Map<String,Object> hm = new HashMap<>();
hm.put("id", id); // some id to fetch data from database
JasperPrint jprint;
try{
jprint = (JasperPrint) JasperFillManager.fillReport(report, hm, MySQLConnection.getAppServerConnection());
JasperViewer.viewReport(jprint,false);
} catch (JRException e) {
e.printStackTrace();
}
打印报告,我想用不同的参数(ID)同一份报告中多次调用,并打印