|
열과 행의 수를 가져오는것은 다음과 같습니다.
row = xlSheet.OlePropertyGet("UsedRange").OlePropertyGet("Rows").OlePropertyGet("Count"); //row갯수
col = xlSheet.OlePropertyGet("UsedRange").OlePropertyGet("Columns").OlePropertyGet("Count");//col갯수
엑셀파일의 시트 불러오시는건 아시죠?? 검색해보시면 나옵니다. 저도 여기 Q/A에서 찾았는걸요. ^^
암흑사제 님이 쓰신 글 :
: 엑셀 파일 불러서
: StringGrid에 뿌려줄때
: 엑셀의 열과 행의 수를 어떻게 알 수 있나요?
|