未注册的类(来自HRESULT的异常:0x80040154(REGDB_E_CLASSNOTREG))用于AxAcroPDF1控件

时间:2013-04-18 15:31:37

标签: vb.net

我想使用AxAcroPDF1控件来查看我的VB.net应用程序中的PDF文件。我将库Acr​​oPDFLib和AxAcroPDFLib添加到我的项目中,并将控件拖到窗体上。

 AxAcroPDF1.src="Myfile.pdf".

Project设置为在X86环境上构建,并选中Register for COM interop选项。我有一台64位机器。我搜索了这个问题,但没有找到任何对我有用的解决方案。谢谢,任何关于此的指示都表示赞赏。

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithoutLicense(Guid clsid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at Panel.InitializeComponent() in Panel.Designer.vb:line 115
   at Panel...............................

0 个答案:

没有答案