Windows7 64位和Office 64位上的LinqToExcel [英] LinqToExcel on Windows7 64 bit with office 64bit

查看:207
本文介绍了Windows7 64位和Office 64位上的LinqToExcel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用linqtoexcel创建了Windows窗体应用程序,以读取Excel文件,该文件可以在Windows 7 32/64位(Office 32位)上正常运行,但是在Windows 64位(Office 64位)上则抛出"Microsoft.ACE.OLEDB.12.0"提供程序,没有在本地计算机上注册

任何人都可以帮助我如何在64位办公室上运行我的应用程序

解决方案

您需要安装Access数据库引擎.更多详细信息 Office Microsoft Access数据库引擎2010可再发行

如果您的项目使用x86 LinqToXml,则安装x86,否则安装x64版本的Access Database Engine.对于x64 Windows和x64 Office,也可以使用x86 LinqToXml和Access数据库引擎.

我在

上成功进行了测试
  • Win 64,Office 64,Access数据库引擎64,LinqToXml 64和输出目标项目x64
  • Win 64,Office 64,Access数据库引擎x86,LinqToXml x86并输出目标Any CPU.

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

解决方案

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.

这篇关于Windows7 64位和Office 64位上的LinqToExcel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆