我是设置Excel 中单元格合并的问题的...合并单元格
row = sheet.CreateRow(0);
HSSFCell cell = row.CreateCell(0);
cell.SetCellValue("倉存與銷售");
HSSFCellStyle style = book1.CreateCellStyle();
style.Alignment = HSSFCellStyle.ALIGN_CENTER;
cell.CellStyle = style;
//Region region=new region(0,0,0,4);
sheet.AddMergedRegion(new region());
row = sheet.CreateRow(1);
row.CreateCell(0).SetCellValue("序號");
“Region”是“NPOI.HSSF.Util.Region”和“System.Drawing.Region”之间的不明确的引用
我应该如何去引用我想要的NPOI.HSSF.Util.Region
求解....
row = sheet.CreateRow(0);
HSSFCell cell = row.CreateCell(0);
cell.SetCellValue("倉存與銷售");
HSSFCellStyle style = book1.CreateCellStyle();
style.Alignment = HSSFCellStyle.ALIGN_CENTER;
cell.CellStyle = style;
//Region region=new region(0,0,0,4);
sheet.AddMergedRegion(new region());
row = sheet.CreateRow(1);
row.CreateCell(0).SetCellValue("序號");
“Region”是“NPOI.HSSF.Util.Region”和“System.Drawing.Region”之间的不明确的引用
我应该如何去引用我想要的NPOI.HSSF.Util.Region
求解....
NPOI.HSSF.Util.Region region = new NPOI.HSSF.Util.Region(0,0,0,4);
using Dr=System.Drawin;然后在代码中用简写。
ut.region 貌似不能这么用啊~求指教...