jxl WritableCellFormat

来源:百度知道 编辑:UC知道 时间:2024/06/09 11:13:34
为什么 WritableCellFormat 值传入 jxl.write.Number 中时就会变为0.

要往单元格里面添加数字吗?
WritableFont titlefont = new WritableFont(WritableFont.TIMES, 20,WritableFont.BOLD);
WritableCellFormat titleformat = new WritableCellFormat(titlefont);
sheet1.addCell(new Number(6,i,12,titleformat));
不知道对你可有帮助。