fastExcel

   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. } 

你可能感兴趣的:(J#)