求教,用C#如何修改excel表格中指定单元格中的数据
展开全部
ex.cells[1,1].点后边就只有equals,gethashcode,gettype,和tostring;
这是代码,您帮忙看看
excel.Application ex = new Microsoft.Office.Interop.Excel.Application();
excel.Workbook wb=ex.Application.Workbooks.Open("e:\\1.xls",Type.Missing,);
excel.Worksheet ws = (excel.Worksheet)wb.Sheets[2] as excel.Worksheet;
string str;
ex.Cells[1,1].//////////////我想把cells[1,1]的值给str
这是代码,您帮忙看看
excel.Application ex = new Microsoft.Office.Interop.Excel.Application();
excel.Workbook wb=ex.Application.Workbooks.Open("e:\\1.xls",Type.Missing,);
excel.Worksheet ws = (excel.Worksheet)wb.Sheets[2] as excel.Worksheet;
string str;
ex.Cells[1,1].//////////////我想把cells[1,1]的值给str
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询