错误信息:未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序。

解决办法:

http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe下载。
然后安装就行了。

 

+++++++++++++++++++++++++++++++++++++++++++++++

 

微软解答:http://social.microsoft.com/Forums/en-AU/visualcshartzhchs/thread/af276dc2-ae54-4455-bb08-dc6f8db655a5

 

+++++++++++++++++++++++++++++++++++++++++++++++

 

 

2007以后的文件必须使用 Microsoft.ACE.OLEDB.12.0 链接

链接字符串
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\xxx.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES";

 

 

+++++++++++++++++++++++++++++++++++++++++++++++

 

 

 

 

 

 

posted on 2011-06-10 20:37  钱途无梁  阅读(875)  评论(0编辑  收藏  举报