日期:2014-05-20  浏览次数:20725 次

jxl设置某一行单元格格式

jxl设置第一行单元格格式

 WritableFont wf = new WritableFont(WritableFont.ARIAL,10,WritableFont.BOLD);
 
WritableCellFormat wcf = new WritableCellFormat(wf);
 
  CellView cv = new CellView();
cv.setAutosize(true);
cv.setSize(1*256);

cv.setFormat(wcf);
sheet.setRowView(0,cv);


设置了字体为粗体,但是没有显示效果,请教,谢谢

------解决方案--------------------
我没有给一行设置过,都是给某个单元格设置,如
titleCF = new WritableCellFormat(wfcTitleBold);
Label labelC = new Label(0, row, title, titleCF);
这样,没有问题
------解决方案--------------------
换poi吧,jxl不支持office2007的格式............