错误信息:未在本地计算机上注册“microsoft.ACE.oledb.12.0”提供程序。
解决办法:
去http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe下载。
然后安装就行了。
+++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++
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";
+++++++++++++++++++++++++++++++++++++++++++++++