1 public static void Test() 2 { 3 ExcelWorkSheet sheet = new ExcelWorkSheet("xxxx.xlsx"); 4 //读 5 string value1 = sheet.Cells[0, 0]; 6 string value2 = sheet.Cells[1, 1]; 7 string value3 = sheet.Cells[1, 2]; 8 //写 9 sheet.Cells[0, 0] = "test1"; 10 sheet.Cells[0, 1] = "1"; 11 sheet.Cells[1, 1] = "2"; 12 //自动扩充表格到10x10 13 sheet.Cells[10, 10] = "1"; 14 sheet.Save(); 15 16 }
源码下载链接(百度网盘)
链接: https://pan.baidu.com/s/1o8DoAkM 密码: hzch
标签:需要 work oid save 下载链接 研究 cell dos win
原文地址:http://www.cnblogs.com/fishyu/p/7832795.html