日期:2014-05-18  浏览次数:20693 次

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);