jxl读取excel

 

String path="";

String path2="";

File file = new File(path);

File file2 = new File(path2);

1.Workbook wb = jxl.Workbook.getWorkbook(file);//读取excel,这个读取到的只能进行读取操作,无法修改文件
2.WritableWorkbook workbook = jxl.Workbook.createWorkbook(file2,wb,new WorkbookSettings());//通过读取到的excel创建新的excel,可以修改

posted @ 2017-03-13 15:24  天涯已可  阅读(220)  评论(0编辑  收藏  举报