npoi worksheet count

  • 38
  • 0

npoi worksheet count

workbook = new HSSFWorkbook(stream);  //目前測試  得讀2003格式才有效
                //workbook = new XSSFWorkbook();  //只適用2007

 

for (int i = 0; i < workbook.NumberOfSheets; i++){

.....

}