数码产品

asp.net导入2013版本的excel问题解决

net中导入2013excel的故障解决办法。

修改导入excel的连接字符串

string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filepath + ";Extended Properties='Excel 12.0;IMEX=1'";

2010版本前的导入字符串是

string strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + filepath + ";Extended Properties='Excel 8.0;IMEX=1'";

posted @ 2015-01-01 15:28  Hackerman  阅读(420)  评论(5编辑  收藏  举报
数码产品