摘要:
近日,使用POI解析excel,发现2003版本的excel解析与2007版本的excel解析存在问题.特此总结:1.所需jar包 :2.java类代码(读取excel文件):public void testPoi(String path) throws Exception{ File file = new File(path); //解决版本兼容问题 Workbook wb = null; try { wb = new HSSFWorkbook(new FileInputStream(file));//支持excel 2003 } catch (Exception e) { ... 阅读全文
posted @ 2014-01-28 13:30 java-张帅 阅读(725) 评论(0) 推荐(0)