poi实现单元格中部分字体颜色设定问题

来源:互联网 发布:100m网络迅雷下载速度 编辑:程序博客网 时间:2024/06/05 21:00

使用类为:HSSFRichTextString 

HSSFRichTextString richString = new HSSFRichTextString("Hello, World!");

richString.applyFont(6, 13, greenFont);
cell.setCellValue(richString);
HSSFRichTextString richString = new HSSFRichTextString("Hello, World!");
richString.applyFont(6, 13, greenFont);

cell.setCellValue(richString);


api-doc网址:https://poi.apache.org/apidocs/index.html

0 0
原创粉丝点击