绝对路径String filepath= "E:\\a.xls";

public static String getExcelData(File file,String lang,int length){
String result = null;
try {
Workbook book = Workbook.getWorkbook(file);
// 获得第一个工作表对象
Sheet sheet = book.getSheet(0);
// 得到第一列第一行的单元格
Cell language = sheet.getCell(0, 0);//列 ,行
}
book.close();
} catch (Exception e) {
System.out.println(e);
}
return result;
}
05-27 05:12