화면 » Api

downloadexcel

Description

여러개의 그리드를 하나의 엑셀 파일에 Sheet를 분리하여 다운로드한다.

Parameters

Parameters Type Description
sFileName STRING 엑셀 파일 이름
sExcelPasswd STRING 엑셀 암호
arrExcelInfo Array 엑셀 저장 그리드 정보 배열
nFileDownType short [옵션] 파일 다운로드 유형 (기본값: 0)

Return Value

Type Description
BOOL 엑셀 파일 다운로드 절차가 정상적으로 시작되었는지 여부

Remark

** nFileDownType 파라미터 값
- 0: 엑셀 파일을 사용자 PC에 저장한다. (서버에 저장하지 않음)
- 1: 엑셀 파일을 서버에 저장하고, 사용자 PC에 저장하지 않는다.
- 2: 엑셀 파일을 저장하지 않고 바로 본다. (전용 브라우저 환경에서만 지원)

nFileDownType 파라미터에 대한 자세한 설명은 그리드 downloadexcelex API 도움말을 참조한다.

arrExcelInfo 파라미터는 개별 그리드의 엑셀 저장 정보 오브젝트의 배열로 구성된다.

엑셀 저장 정보 오브젝트 = {
	inst_grid: grdList,              // 그리드 인스턴스
	is_save_onerow: false,           // 멀티라인그리드인 경우, 한줄로 저장 여부 
	is_include_pattern: true,        // 패턴 적용 여부
	is_include_header: true,         // 헤더 포함 여부
	is_include_statdata: true,       // 통계 데이터 포함 여부
	is_include_border: true,         // 경계선 적용 여부
	is_include_align: true,          // 정렬 적용 여부
	is_include_backcolor: true,      // 배경색 적용 여부
	is_include_font: true,           // 폰트 적용 여주
	is_include_forecolor: true,      // 전경색 적용 여부
	is_include_itemstyle: true,      // 아이템별 스타일 적용 여부
	is_include_itemmerge: true,      // 아이템 병합 적용 여부
	is_include_linenumber: true,     // 라인넘버 포함 여부
	is_checkrow_only: false,         // 체크된 행만 포함 여부
	convert_number_type: 0,          // 숫자 변환 타입 (기본값: 0)
	is_save_onerow_mergedata: true,  // 멀티라인그리드 한줄로 저장시 병합된 데이터 포함 여부 (기본값: true) 
	is_include_masking: true         // 데이터 마스킹 적용 여부
}

Example

function btn_multidownload_on_mouseup(objInst) { var arrGrid; arrGrid = []; arrGrid.push({ inst_grid: grdList, // 그리드 인스턴스 is_save_onerow: false, // 멀티라인그리드인 경우, 한줄로 저장 여부 is_include_pattern: true, // 패턴 적용 여부 is_include_header: true, // 헤더 포함 여부 is_include_statdata: true, // 통계 데이터 포함 여부 is_include_border: true, // 경계선 적용 여부 is_include_align: true, // 정렬 적용 여부 is_include_backcolor: true, // 배경색 적용 여부 is_include_font: true, // 폰트 적용 여주 is_include_forecolor: true, // 전경색 적용 여부 is_include_itemstyle: true, // 아이템별 스타일 적용 여부 is_include_itemmerge: true, // 아이템 병합 적용 여부 is_include_linenumber: true, // 라인넘버 포함 여부 convert_number_type: 0, is_include_masking: true // 데이터 마스킹 적용 여부 }); arrGrid.push({ inst_grid: grdList2, is_save_onerow: false, is_include_pattern: true, is_include_header: true, is_include_statdata: true, is_include_border: true, is_include_align: true, is_include_backcolor: true, is_include_font: true, is_include_forecolor: true, is_include_itemstyle: true, is_include_itemmerge: true, is_include_linenumber: true, convert_number_type: 0, is_include_masking: true }); screen.downloadexcel("multi.xlsx", "", arrGrid); }

See Also

stopexceldownload
isexceldownloading

Viewer Ver.

9.1.1.1

Update Date

20230817