COMException (0x80040154): 使用 AxAcroPDFLib 时未注册类 [英] COMException (0x80040154): Class not registered when using AxAcroPDFLib
问题描述
我在使用 AxAcroPDF 时遇到以下错误
I am getting following error when using AxAcroPDF
System.Runtime.InteropServices.COMException (0x80040154): Class not register (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
抛出错误的那一行是
((System.ComponentModel.ISupportInitialize)(this.axAcroPDF1)).EndInit();
如果有人知道解决方案,请帮忙
If anyone knows the solution please help
推荐答案
当我遇到这个问题时,我已经安装了正确版本的 DLL 文件(32 位 Windows XP 上的 32 位 dll)并将其作为我的项目参考.
I had already installed the correct version of the DLL file (32bit dll on 32bit Windows XP) and put it as my Project References when I was having this problem.
我通过安装 AxAcroPDFLib.dll 文件所需的 Adobe Reader 软件解决了这个问题.
I had solved this problem by just installing the Adobe Reader software which is required by the AxAcroPDFLib.dll file.
这篇关于COMException (0x80040154): 使用 AxAcroPDFLib 时未注册类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!