我有一个使用iframe呈现的报告,并且顶部工具栏包含分页和导出选项(请参阅jasper_iframe.png),下面的示例代码
<div class="its-preloader-reports">
<iframe src="http://localhost:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=/public/Exchange/reports/Report1&decorate=no&enterpriseId=11&startTime=28/05/2015%2000:00:00&endTime=28/05/2015%2023:59:00&name=itmsadmin%20quwic&report_type=3" height="867px" width="960px"> </iframe>
当我将此报告转换为visualize.js时相同的报告顶部工具栏已消失(请参阅jasper_visualize.png),下面的示例代码
visualize({
server: "http://localhost:8080/",
auth: {
name: "superuser",
password: "superuser"
}
},function (v) {
v("#container").report({
resource: "/public/Exchange/reports/Report1",
params: {
"enterpriseId": ["21"],
"startTime": ["01/04/2015 00:00:00"],
"endTime": ["03/04/2015 23:59:00"],
"name": ["itmsadmin quwic"],
"report_type=3": ["3"]
},
error: handleError
});
function handleError(err) {
console.log('error:'+err.message);
}
});
我的问题是Visualize.js是否支持此工具栏,或者我们必须自己实现它?任何解释都会非常感激