首页 > 解决方案 > 无法将 acrobat COM 组件添加到 .NET 5.0 winform 项目

问题描述

我已经安装了最新版本的 Adob​​e Acrobat DC(64 位),我想从 .NET 5.0 winform 项目中调用它的 pdf 阅读器。

我在 Visual Studio 2019 的工具箱中添加了相关项目后,Adobe PDF Reader 项目被禁用。

在此处输入图像描述

我在输出窗口中看到以下警告:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2827,5): warning MSB3304: Could not determine the dependencies of the COM reference "Acrobat". Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))  
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2827,5): warning MSB3290: Failed to create the wrapper assembly for type library "Acrobat". Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))

我无法将控件添加到我的表单中。

我还尝试将平台目标更改为 x86 或 x64,但没有帮助。

如果有人知道这个问题的解决方案,将不胜感激。

标签: c#.netwinformscomacrobat

解决方案


推荐阅读