엑셀(Excel)

글자 정렬하여 저장

QCELL에서 엑셀로 저장할 경우, 화면에 표시된 글자 정렬과 엑셀 파일에서의 실제 글자 정렬이 다를 수 있습니다.

기본적으로 엑셀에서는 모든 텍스트가 왼쪽 정렬로 표시됩니다.
화면과 동일한 정렬을 유지하려면 textalignclass 옵션을 적용해야 합니다.


textalignclass화면과 동일한 글자 정렬을 유지시키는 옵션입니다.

JS

  var properties = 
  	 {
  	   filename:	"excel",
  	   border:	true,
  	   headershow:	true,
  	   colwidth:	true,
  	   textalignclass:{
  	   	center: 'align-center',  // 가운데 정렬
  	   	left: 'align-left',  // 왼쪽 정렬 
  	   	right: 'align-right'  // 오른쪽 정렬
  	   }
  	 }
  QCell1.excelDownload(properties);