AxAcroPDF - Vista64上类未注册错误 [英] AxAcroPDF - Vista64 Class Not Registered Error

查看:438
本文介绍了AxAcroPDF - Vista64上类未注册错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用AxAcroPDFLib.AxAcroPDF组件来加载和打印PDF文件在C#编写一个WinForms应用程序。一直没有在Windows XP中的任何问题。我提出我的开发环境,到Vista 64位,现在该应用程序将无法运行(在Vista 64),除非我删除AxAcroPDF组件。我得到以下错误的应用程序运行时:

We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (on Vista 64) unless I remove the AxAcroPDF component. I get the following error when the application runs:

System.Runtime.InteropServices.COMException: 没有注册类(从HRESULT异常:0x80040154的(REGDB_E_CLASSNOTREG))。

"System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))."

我已被告知在Adobe论坛,对于错误的原因是,他们没有一个64位版本的AxAcroPDF ActiveX控件。

I have been advised on the Adobe Forums that the reason for the error is that they do not have a 64 bit version of the AxAcroPDF ActiveX control.

有没有解决这个问题的一些方法?例如,我可以转换的32位ActiveX控件64位控制自己?

Is there some way around this problem? For example can I convert the 32bit ActiveX control to a 64bit control myself?

推荐答案

您不能将Adobe的ActiveX控件到64位自己,但你可以强迫你的应用程序在32位模式下通过设置目标平台的x86运行。

You can't convert Adobe's ActiveX control to 64bit yourself, but you can force your application to run in 32bit mode by setting the platform target to x86.

有关您的Visual Studio版本的说明,请参阅问题部分1.44使用Microsoft Visual Studio 2005 <当/ A>

For instructions for your version of Visual Studio, see section 1.44 of Issues When Using Microsoft Visual Studio 2005

这篇关于AxAcroPDF - Vista64上类未注册错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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