(转)Excel的 OleDb 连接串的格式(连接Excel 2003-2013)

string strCon = "Provider=Microsoft.ACE.OLEDB.12.0;data source=" + filePath + ";Extended Properties='Excel 12.0;HDR=Yes;IMEX=1'";//Excel 2007文件Provider=Microsoft.Jet.OleDb.4.0;data source=" + filePath + ";Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'&qu
posted @ 2013-11-25 15:25  冰深  阅读(441)  评论(0编辑  收藏  举报