当前位置: 代码迷 >> Java Web开发 >> jxl生成excel如若设置中文字体?
  详细解决方案

jxl生成excel如若设置中文字体?

热度:28   发布时间:2016-04-17 16:28:23.0
jxl生成excel如果设置中文字体?急!!!!!!!!!!!!!!!!!!!!!!!!

WritableFont   font1   =   new     WritableFont(WritableFont.createFont( "隶书 "),   20   ,WritableFont.BOLD,false);    


这样好像不对啊!


------解决方案--------------------
jxl.write.WritableFont wfc =
new jxl.write.WritableFont(
WritableFont.ARIAL,
255,
WritableFont.BOLD,
false,
UnderlineStyle.NO_UNDERLINE,
jxl.format.Colour.BLACK
);
jxl.write.WritableCellFormat wcfFC= new jxl.write.WritableCellFormat(wfc);
  相关解决方案