你好,渲染完成的函数是这两个函数:- documentLoaded: function reportLoader() {
- Console.log(viewer.pageCount);
- },
- reportLoaded: function (reportInfo) {
- console.log(reportInfo.paremeters);
- },
复制代码 你问的想要实现导出Excel,代码层设置属性的代码如下:
- viewer.export('Xls', function (uri) {
- var newWin = null;
- try {
- newWin = window.open(uri);
- } catch (e) { }
- if (!newWin) {
- window.location = uri;
- }},
- true, {
- FileName: 'AnyValidName.xlsx',
- MultiSheet:true
- });
复制代码
|