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

解决方案 »

  1.   

    javaexcelapi或其它...poi?? 
    只用过第一个 ------------------------------------------------------
               我们还年轻牛奶会有的奶牛也会有的 
                 可天天在 csdn 混这些会有吗 ??
      

  2.   

    http://expert.csdn.net/Expert/topic/2006/2006577.xml?temp=.4570124
    刚刚在这个上面贴了一些代码!
    POI的
      

  3.   

    如何使用Java POI生成Excel表文件 !    naxin(收藏) 
      
         java POI Excel 
      
    // 使用Java POI
    // 把要两个JAR文件放到lib/ext下
    // code run against the jakarta-poi-1.5.0-FINAL-20020506.jar.
    //                  and commons-logging-1.0.jar
    例子程序: 
    import org.apache.poi.hssf.usermodel.*;
    import java.io.FileOutputStream;// code run against the jakarta-poi-1.5.0-FINAL-20020506.jar.
    //                  and commons-logging-1.0.jar
    public class PoiTest {static public void main(String[] args) throws Exception { FileOutputStream fos = new FileOutputStream("d:\\foo.xls");
     HSSFWorkbook wb = new HSSFWorkbook();
     HSSFSheet s = wb.createSheet();
     wb.setSheetName(0, "Matrix");
     for(short i=0; i<50; i++) {
      HSSFRow row = s.createRow(i);
      for(short j=0; j<50; j++) {
       HSSFCell cell = row.createCell(j);
       cell.setCellValue(""+i+","+j);
      }
     }
     wb.write(fos);
     fos.close();
    }
    }