将c#oledb应用程序定位到已安装的Ace.12.0 OLEDB驱动程序32/64bit [英] targetting a c# oledb application to the installed Ace.12.0 OLEDB Driver 32/64bit
问题描述
我想知道如何确定目标PC上是否安装了32位或64位Ace OLEDB驱动程序,然后定制我的程序的32位或64位版本,从而用OLEDB编写出出色的表现.
当前在具有64位ACE的64位办公室上,我需要将Visual Studio中的配置从x86更改为x64,反之亦然.
是否有任何方法可以检测32/64位安装,您是否需要在安装项目中编写脚本,还是可以动态编写代码以更改32/64版本?
谢谢,
Jase
Hi,
I would like to know how to determine if the Ace OLEDB Driver is 32 or 64bit installed on the target PC and then tailor the 32 or 64 bit build of my program which writes to excel with OLEDB.
Currently on 64 bit office with 64bit ACE I need to change the configuration in visual studio from x86 to x64 and vice versa.
Is there any method to detect 32/64bit installation and do you need in the setup project to write a script or can you dynamically write code to alter the 32/64 build that way.
Thanks,
Jase
推荐答案
看看 http://epplus.codeplex.com/ [ ^ ]用于Excel输出,它是所有托管代码,您不希望这样做不必担心32/64位版本和相关的部署问题.
Take a look at http://epplus.codeplex.com/[^] for Excel output which is all managed code and you don''t have to worry about 32/64 bit builds and the associated deployment problems.
这篇关于将c#oledb应用程序定位到已安装的Ace.12.0 OLEDB驱动程序32/64bit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!