0

AxAcroPDF1 コントロールを使用して、VB.net アプリケーションで PDF ファイルを表示したいと考えています。ライブラリ AcroPDFLib と AxAcroPDFLib をプロジェクトに追加し、コントロールをフォームにドラッグしました。

 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...............................
4

0 に答える 0