首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

POI学习札记(二)

2012-10-27 
POI学习笔记(二)7.? 设置单元格的边框??10. 文本提取?poi的ExcelExtractor可以抽取Cell中的值。org.apache.

POI学习笔记(二)

7.? 设置单元格的边框

?

?

10. 文本提取

?

poi的ExcelExtractor可以抽取Cell中的值。org.apache.poi.ss.extractor 为抽取类的接口,ExcelExtractor, XSSFExcelExtractor实现了该接口。

?

        CellStyle style = workbook.createCellStyle();        Font font = workbook.createFont();        font.setBoldweight(Font.BOLDWEIGHT_BOLD);        style.setFont(font);        for (int i = 0; i < 10000; i++) {            Row row = sheet.createRow(i);            Cell cell = row.createCell((short) 0);            cell.setCellStyle(style);        }

?

POI学习笔记三将会继续讲解poi更实用的知识点。

热点排行