在64位Windows 7操作系统中使用OLEDB连接的MS Excel导入问题 [英] MS Excel Import issue using OLEDB connection in 64 bit Windows 7 OS
问题描述
我正在C#Windows应用程序中工作,它具有使用OLE DB连接的Microsoft Excel导入和导出功能.它具有2003和2007 Excel的支持.此功能适用于所有具有32位OS的系统.但是,该Excel导入和导出在64位Windows 7 OS中不起作用.尝试在Winodws 7 64位操作系统中导入MS Excel 2007时出现以下错误.
未在本地计算机上注册Micosoft OLE DB 12.0".
您能帮忙解决这个问题吗?我迫切需要解决办法
谢谢&&问候,
K.Kedarnadh
Hi,
I am working in c# windows application, it has microsoft excel import and export features using OLE DB Connection. It has a support of 2003 and 2007 Excels. This feature is working in all Systems which are having 32 bit OS''s. But that excel import and export is not working in 64 bit Windows 7 OS. The following error is coming when try to import MS Excel 2007 in Winodws 7 64 bit Operating syste.
"Micosoft OLE DB 12.0 is not registered with local machine".
Could you please help in this issue. I need solution for this urgently
Thanks && Regards,
K.Kedarnadh
推荐答案
尝试以下操作:为目标cpu x86编译应用程序->如果可行,我将解释原因;)
Try this: Compile your application for target cpu x86 -> if it works, I´ll explain why ;)
首先,这个问题对您来说很紧迫,没有其他人可以解决.如果本地计算机上未安装Access 2007,则需要在该计算机上安装Office 2007连接组件,该组件可在 ^ ]
只要您的应用程序被编译为32位可执行文件,那么操作系统就完全无关紧要.
First off, this issue is only urgent to you, no-one else. If Access 2007 is not installed on the local machine then you need to install the Office 2007 Connectivity components on to that machine which can be found here[^]
As long as your app is compiled to a 32 bit executable, then the OS shouldn''t matter at all.
这篇关于在64位Windows 7操作系统中使用OLEDB连接的MS Excel导入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!