지정한 엑셀 파일의 시트 개수를 리턴하는 API이다. 파일이 존재하지 않는 경우, 파일선택다이얼로그를 표시한다.
Parameters | Type | Description |
---|---|---|
strFilePath | STRING | 파일 경로[옵션] |
strPassword | STRING | 파일 암호[옵션] |
Type | Description |
---|---|
short | sheet의 개수 |
전용 브라우저 환경에서만 동작합니다.
function btnTest_on_mouseup()
{
// 엑셀파일의 시트 개수를 취득
var sheetcount = factory.xplusgetexcelsheetcount("D:\\test\\new.xlsx");
}
function btnTest2_on_mouseup()
{
// 파일 대화상자에서 선택한 엑셀파일의 시트 개수를 취득
var sheetcount = factory.xplusgetexcelsheetcount();
}