var excelButtons = $('#BtnExcel');// 导出 Excel 文件
excelButtons.bind('click', function (ev) {
viewer.export('csv', function (uri) { //导出时多页合到一个sheet
var newWin = null;
try {
newWin = window.open(uri);
} catch (e) { }
if (!newWin) {
window.location = uri;
}
},
true, {
FileName: $("#FinanceYear").val() + $("#FinanceVer").val() + 'RawpackAPIcorp_upload.csv',
MultiSheet: false,
Pagination: false,
});
});
});
|
|