EXCEL POI学习笔记 xssf (一)
1.创建一个工作薄
?
5 ?创建各种类型的单元格(数字类型,富文本类型,日期类型,公式,超级连接)
?
??
9.单元格背景色的设值
?
//单元格中实现自动换行 Cell cell = row.createCell(2); cell.setCellValue("Use \n with word wrap on to create a new line"); //to enable newlines you need set a cell styles with wrap=true CellStyle cs = wb.createCellStyle(); cs.setWrapText(true);//开启自动换行需要setWrapText(true) cell.setCellStyle(cs);?12 待续
?
?
?
1 楼 huwei117 2011-08-12 学习了,谢谢! 2 楼 haldis 2012-07-12 有完整的例子吗?谢谢 3 楼 lijunwyf41 2012-07-23 XSSFWorkbook 这个类在哪个包里面?能不能把你所引用的包也上传?我下载最新的,没有XSSFWorkbook 这个类,