AutoExcelMode (cfg)

엑셀 다운로드/업로드 시 서버 모듈클라이언트 모듈 중 어떤 방식을 사용할지 선택합니다.
설정하지 않으면 기본적으로 서버 모듈을 사용합니다.

모듈 구분

Type

number

Options

Value Description
1 서버 모듈 사용(down2Excel, loadExcel)(default)
2 클라이언트 모듈 사용(exportData, importData) (IE10이상에서만 사용 가능)
3 브라우저 성능 기준 자동 선택.
IE9 이하: 서버모듈, IE10 이상, 모던 브라우저 : 클라이언트 모듈.

Example


//1. 클라이언트 모듈 사용
options = {
  Cfg: {
    AutoExcelMode: 2
  }
};

// 클라이언트 업로드
sheet.loadExcel(); // 서버 모듈(loadExcel) 대신 클라이언트 모듈(importData) 사용

//2. 클라이언트/서버 모듈 자동 분기
options = {
  Cfg: {
    AutoExcelMode: 3
  }
};

// 브라우저 환경에 따라 자동으로 서버/클라이언트 선택
sheet.down2Excel({ fileName: "Excel.xlsx" }); // 서버 모듈(down2Excel) 또는 클라이언트 모듈(exportData) 사용

Read More

Since

product version desc
excel 8.0.0.4 기능 추가
excel 8.0.0.5 명칭 변경 ExportMode => AutoExcelMode