豁然高

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

随笔分类 -  POI

POI--各种样式的XSSFCellStyle的生成
摘要://背景色、フォント色、枠線より各種XSSFCellStyleの作成して、cellStyleMapに保存する private HashMap createXssfCellStyle() { HashMap cellStyleMap = new HashMap(); XSSFCellStyle xssfCellStyle; Stri... 阅读全文

posted @ 2019-04-17 17:32 豁然高 阅读(3755) 评论(0) 推荐(0) 编辑

POI 使用颜色字符串生成XSSFColor对象
摘要:public static int[] hexToRgb(String hex) { String colorStr = hex; if (hex.startsWith("#")) { colorStr = hex.substring(1); } if (StringUtils.length(col 阅读全文

posted @ 2019-04-17 17:30 豁然高 阅读(6996) 评论(0) 推荐(0) 编辑

POI richText和html的转换案例
摘要:private XSSFRichTextString parseHtmlStrToRichText(String htmlStr) { Document document = parseHtmlStrToDocument(htmlStr); XSSFRichTextString rts = pars 阅读全文

posted @ 2019-04-11 10:53 豁然高 阅读(907) 评论(0) 推荐(0) 编辑

Java POI操作Excel注意点
摘要:excel的行索引和列索引都是从0开始,而行号和列号都是从1开始 POI·操作excel基本上都是使用索引 XSSFRow对象的 row.getLastCellNum() 方法返回的是当前行最后有效列的列号而不是列索引 XSSFSheet对象的 sheet.getLastRowNum() 方法返回的 阅读全文

posted @ 2019-03-14 14:16 豁然高 阅读(358) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示