请问,使用jXL写Excel文件时,如何通过程序生成下拉框。就是在excel中点击此列的单元格,然后显示一个下拉框,有些值可选。欢迎大侠指点,谢谢!!! 我在本地用excel2007,
WritableCellFeatures wcfc = new WritableCellFeatures();
List<String> al = new ArrayList<String>();
al.add("The Fellowship of the Ring");
al.add("The Two Towers");
al.add("The Return of the King");
wcfc.setDataValidationList(al);
lLabel.setCellFeatures(wcfc);
sheet.addCell(lLabel);
发现这种方式不行,请大侠们指点
WritableCellFeatures wcfc = new WritableCellFeatures();
List<String> al = new ArrayList<String>();
al.add("The Fellowship of the Ring");
al.add("The Two Towers");
al.add("The Return of the King");
wcfc.setDataValidationList(al);
lLabel.setCellFeatures(wcfc);
sheet.addCell(lLabel);
发现这种方式不行,请大侠们指点
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货