http://www-900.ibm.com/developerWorks/cn/java/l-javaExcel/index.shtml

解决方案 »

  1.   

    import java.io.File; 
    import java.util.Date; 
    import jxl.*; ... Workbook workbook = Workbook.getWorkbook(new File("myfile.xls")); 
    (NOTE: when creating a spreadsheet from a ServletInputStream you must remove the HTTP header information before creating the Workbook object.) Once you have accessed the workbook, you can use this to access the individual sheets. These are zero indexed - the first sheet being 0, the second sheet being 1, and so on. (You can also use the API to retrieve a sheet by name). 
    Sheet sheet = workbook.getSheet(0); 
    Once you have a sheet, you can then start accessing the cells. You can retrieve the cell's contents as a string by using the convenience method getContents(). In the example code below, A1 is a text cell, B2 is numerical value and C2 is a date. The contents of these cells may be accessed as follows 
    Cell a1 = sheet.getCell(0,0); 
    Cell b2 = sheet.getCell(1,1); 
    Cell c2 = sheet.getCell(2,1); String stringa1 = a1.getContents(); 
    String stringb2 = b2.getContents(); 
    String stringc2 = c2.getContents(); // Do stuff with the strings etc 
      

  2.   

    去下一个包jexcelapi用GOOGLE搜索
      

  3.   


    还是我帮你吧
    http://www.andykhan.com/jexcelapi/download.html
      

  4.   

    http://expert.csdn.net/Expert/topic/1197/1197116.xml?temp=.8192865