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,可以修改

05-26 20:14