기타 excel export
페이지 정보
작성자 Nope 작성일 2022-11-03 09:27 조회 701회 댓글 0건본문
관련링크
excel export 시 incorrect fileformant 에러 문의드립니다.
Blazor 사용중이며
spread는 List<List<object>> 를 setdatasource로 바인딩 되어 있습니다.
excelio를 이용하여 export를 다음과 같이 하려 하고 있고
===================================================================
SaveExcel= function (host, fileName) {
var spread = GC.Spread.Sheets.findControl(host);
var excelIO = new GC.Spread.Excel.IO();
if (spread) {
var json = spread.toJSON();
excelIO.save(json, function (blob) {
saveAs(blob, "a.xlsx");
}, function (e) {
// process error
console.log(e);
});
}
}
===================================================================
excelIO.save 에서
위와 같은 에러가 납니다.
json = spread.toJSON(); 에서 jason 안에 데이터 들어가는것 까진 확인 했습니다.
_Host.cshtml 상
위와 같이 script 선언도 되어 있습니다.
incorrect fileformat 에러 관련하여 문의 드립니다.
댓글목록
등록된 댓글이 없습니다.