zwxu(zwxu)我写了 import org.apache.poi.hssf.util.Region; 但是 Region r= new Region(2, 1, 2,4); 这就通不过,错误如下,67: cannot resolve symbol symbol : constructor Region (int,int,int,int) location: class org.apache.poi.hssf.util.Region Region r= new Region(2, 1, 2,4); ^ 1 error
搞定了,真不好意思,short类型必须定义一下啊,下一步我要找到Region的border设置,然后交流给大家。 short rowto =1; short colto =4; Region r= new Region(1, rowto, 1,colto);
cs.setBorderLeft( HSSFCellStyle.BORDER_MEDIUM );
cs.setLeftBorderColor( HSSFColor.BLACK.index );
但是
Region r= new Region(2, 1, 2,4);
这就通不过,错误如下,67: cannot resolve symbol
symbol : constructor Region (int,int,int,int)
location: class org.apache.poi.hssf.util.Region
Region r= new Region(2, 1, 2,4);
^
1 error
short rowto =1;
short colto =4;
Region r= new Region(1, rowto, 1,colto);