控制台无报错,代码与示例一致,实际代码 designerOptions.openViewer = function(options) {
if (viewer) {
viewer.openReport(reportId);
return;
}
viewer = GrapeCity.ActiveReports.JSViewer.create({
locale: options.locale,
element: "#" + eId,
reportService: {
url: "api/reporting"
},
reportID: this.report,
settings: {
zoomType: "FitPage"
}
});
}; |