메뉴 바로가기
서브메뉴 바로가기
본문 바로가기
CXLEzAutomation XL(FALSE); // FALSE: 처리 과정을 화면에 보이지 않는다
XL.SetCellValue(1,1,"ddd"); XL.SetCellValue(1,2,"22"); XL.SetCellValue(4,4,"4,4"); XL.SetCellValue(7,4,"7,4"); XL.SaveFileAs(strThisPath);
XL.ReleaseExcel();}
여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.
파일 용량 제한 : 0MB (허용 확장자 : *.*)
업로드 중... (0%)
예제를 보면 아래와 같은데, 마지막에 XL.ReleaseExcel()를 해줍니다.
이렇게 해도 해결이 안된다면 전체 소스를 올려 주세요~~.
그래야 디버깅을 할수 있습니다.^^
void CWATExcelRWDlg::OnBnClickedButton1()
{
char chThisPath[_MAX_PATH];
GetCurrentDirectory( _MAX_PATH, chThisPath);
UpdateData(TRUE);
CString strThisPath ;
strThisPath.Format("%s\%s.xls",chThisPath,m_strFileName);
CXLEzAutomation XL(FALSE); // FALSE: 처리 과정을 화면에 보이지 않는다
XL.SetCellValue(1,1,"ddd");
XL.SetCellValue(1,2,"22");
XL.SetCellValue(4,4,"4,4");
XL.SetCellValue(7,4,"7,4");
XL.SaveFileAs(strThisPath);
XL.ReleaseExcel();
}