我使用了以下导出:
import jxl.Cell;
import jxl.write.*;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.Label;
import jxl.write.WritableSheet;
import jxl.write.WritableWorkbook;
import jxl.write.Number;
import jxl.write.biff.RowsExceededException;
这是我用来编写工作表的代码的一部分:
Workbook workbook = null;
WritableWorkbook writablesheet1 = workbook.createWorkbook(new File("C://Users//Desktop//Files//Monday.xls"));
Label label1 = new Label(0,0,"Monday");
创建标签后,我这样写:
writablesheet1.addCell(label1);
以上语句引发错误“对于WritableWorkbook类型,未定义方法addCell(Label)”
我错过了进口商品吗?或使用了错误的jar文件? (jxl-2.6.12)