我把特殊字符放在excel文件里面,你那边建个表导出试一下
用js的方式导出
- function OnExportExcel() {
- var viewModel = GetViewModel('WebViewer1');
- if (!viewModel.PageLoaded())
- return;
- viewModel.Export(ExportType.Xls, function (url) {
- try {
- //window.open(url, '_blank');
- window.location = url;
- } catch (e) {
- }
- }, true, { FileName: 'ActiveReports报表.xlsx' });
- };
复制代码
|