LinqToExcel on Windows7 64 bit with office 64bit

雨燕双飞 提交于 2019-12-06 08:33:44

问题


I have created windows forms application using linqtoexcel to read excel files it runs fine on windows 7 32/64 bit with office 32 bit but on windows 64 bit with office 64 it throws 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

Can anyone help me how I can run my application on 64bit office


回答1:


You need to install Access Database Engine. More details Office Microsoft Access Database Engine 2010 Redistributable

If your project use x86 LinqToXml install x86 otherwise x64 version of Access Database Engine. For x64 Windows and x64 Office can be used also x86 LinqToXml and Access Database Engine.

I successfully test this on

  • Win 64, Office 64, Access Database Engine 64, LinqToXml 64 and output target project x64
  • Win 64, Office 64, Access Database Engine x86, LinqToXml x86 and output target Any CPU.


来源:https://stackoverflow.com/questions/22954762/linqtoexcel-on-windows7-64-bit-with-office-64bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!