我尝试用多结果集填充报告。但它不起作用。请给我一些解决方案或修复我的代码。
ResultSet results1 = statement.executeQuery("FETCH ALL ret1;");
ResultSet results2 = statement.executeQuery("FETCH ALL ret2;");
JRResultSetDataSource ret1 = new JRResultSetDataSource(results1);
JRResultSetDataSource ret2 = new JRResultSetDataSource(results2);
JasperPrint print;
print = JasperFillManager.fillReport(report, params, ret1);
MMMHUHU
相关分类