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)同一份報告中多次調用,並打印