Lisa 发表于 2015-12-1 14:24:00

根据语言读取报表

如果页面有个下拉框,分别是简体中文,繁体中文,英文,我要根据这3个类型,浏览不同的报表应该怎么弄好?

frank.zhang 发表于 2015-12-1 15:17:00

您好,

比较简单的方式是,使用HTML5的方式显示。



调用时,可以指定不同的localeUri来实现切换
            var viewer = GrapeCity.ActiveReports.Viewer({
                element: '#viewerContainer',
                reportService: {
                  url: '/ActiveReports.ReportService.asmx'
                },
                uiType: 'desktop',
                reportLoaded : function () {
                  reportsButtons.prop('disabled', false);
                },
                localeUri: 'Scripts/i18n/Localeuri.txt'
            });
页: [1]
查看完整版本: 根据语言读取报表