<script>
var designerOptions = GrapeCity.ActiveReports.WebDesigner.createDesignerOptions();
designerOptions.server.url = 'api';
designerOptions.language = "zh";
designerOptions.locale = "zh";
designerOptions.units = 'cm';
designerOptions.restoreUnsavedReport=true;
designerOptions.reportInfo = { id: '110555'};
designerOptions.saveButton.visible = false;
var viewer = null;
designerOptions.openViewer = function (options) {
if (viewer) {
viewer.openReport(options.reportInfo.id);
return;
}
viewer = GrapeCity.ActiveReports.JSViewer.create({
locale: options.locale,
element: '#' + options.element,
reportService: {
url: 'api/reporting',
},
reportID: options.reportInfo.id,
settings: {
zoomType: 'FitPage'
},
});
};
designerOptions.dataTab.dataSets.canModify = true;
designerOptions.dataTab.dataSources.canModify = true;
GrapeCity.ActiveReports.WebDesigner.renderApplication("ar-web-designer", designerOptions);
</script> |