viewer = GrapeCity.ActiveReports.JSViewer.create({
element: '#viewerContainer',
reportService: {
url: 'api/reporting/',
},
reportID: 'Reports/Preview/ReportOutput/TESTT.rdf',
renderMode: '1',
documentLoaded: () => {
viewer._viewer.zoom = { mode: 0, factor: '0.8' };
viewer.renderMode = '1';
},
reportLoaded: (reportInfo) => {
viewer.toolbar.desktop.removeItem("$print");
var PrintBut = {
key: '$LodopPrint',
iconCssClass: 'fa fa-print',
text: '打印',
enabled: true,
action: function (item) {
}
};
viewer.toolbar.desktop.addItem(PrintBut);
}
}); |