代码如下:(同时支持XLSX、XLS格式) string excelPath = Application.dataPath + "/Test/Test.xlsx";
string outputPath = Application.dataPath + "/Test/Test2.xlsx";
Excel xls = ExcelHelper.LoadExcel(excelPath);
xls.ShowLog();
xls.Tables[0].SetValue(1, 1, "???");
ExcelHelper.SaveExcel(xls, outputPath);
源码下载地址:http://pan.baidu.com/s/1ged4sON
密码:
|
|
|
|
|
|