`
iorit2003
  • 浏览: 138691 次
  • 性别: Icon_minigender_1
  • 来自: 合肥
社区版块
存档分类
最新评论

fastExcel

J# 
阅读更多
   1. public void testFastExcel(String strPath) throws Exception { 
   2.      
   3.     Workbook workBook = FastExcel.createReadableWorkbook(new File(strPath)); 
   4.     workBook.open(); 
   5.  
   6.     Sheet s = workBook.getSheet(0); 
   7.      
   8.     String[] row; 
   9.     String cell; 
  10.      
  11.     for (int i = s.getFirstRow(); i <= s.getLastRow(); i++) { 
  12.         row = s.getRow(i); 
  13.         for (int j = s.getFirstColumn(); j <= s.getLastColumn(); j++) { 
  14.             cell = s.getCell(i, j); 
  15.         } 
  16.     } 
  17.      
  18.     workBook.close(); 
  19. } 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics