ITeye博客

fastExcel

iorit2003 · 2009-01-21 10:22 · java常用功能 · Markdown

  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;
  2. for (int i = s.getFirstRow(); i <= s.getLastRow(); i++) {  
    
  3.     row = s.getRow(i);  
    
  4.     for (int j = s.getFirstColumn(); j <= s.getLastColumn(); j++) {  
    
  5.         cell = s.getCell(i, j);  
    
  6.     }  
    
  7. }  
    
  8. workBook.close();  
    
  9. }

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。