Vb.net 未为AxAcroPDF1控件注册类(HRESULT:0x80040154(REGDB_E_CLASSNOTREG)的异常)
我想使用AxAcroPDF1控件在我的VB.net应用程序中查看PDF文件。我将AcroPDFLib和AxAcroPDFLib库添加到我的项目中,并将控件拖到窗体上Vb.net 未为AxAcroPDF1控件注册类(HRESULT:0x80040154(REGDB_E_CLASSNOTREG)的异常),vb.net,Vb.net,我想使用AxAcroPDF1控件在我的VB.net应用程序中查看PDF文件。我将AcroPDFLib和AxAcroPDFLib库添加到我的项目中,并将控件拖到窗体上 AxAcroPDF1.src="Myfile.pdf". 项目设置为在X86环境上构建,并且选中了注册COM互操作的选项。我有一台64位的机器。我在谷歌上搜索过这个问题,但没有找到任何适合我的解决方案。谢谢,任何关于这方面的建议都将不胜感激 Class not registered (Exception from HRESULT
AxAcroPDF1.src="Myfile.pdf".
项目设置为在X86环境上构建,并且选中了注册COM互操作的选项。我有一台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...............................
您是否设置了任何其他AxAcroPDF1属性。更多的代码可能会有帮助。不,只是src属性。