c# - 无法将 acrobat COM 组件添加到 .NET 5.0 winform 项目
问题描述
我已经安装了最新版本的 Adobe 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,但没有帮助。
如果有人知道这个问题的解决方案,将不胜感激。
解决方案
推荐阅读
- matlab - 使用 MLE 函数估计自定义分布的参数
- python - xml.etree.ElementTree - .remove() 功能的问题
- mysql - 如何在 MySQL 中修复这个简单的外键错误
- php - 遇到以下 SMTP 错误:0 无法使用 PHP SMTP 发送电子邮件
- java - 如何从 AutoCompleteTextView 中选择文本并将其显示在 ListView 中?
- javascript - 使用 JavaScript 的动态文本输入
- android - 如何从 Kotlin 的 Hashmap 中获取值的关键?
- javascript - Nodejs (2 ** 64) - (2 ** 5) === (2 ** 64) ?为什么
- c# - 项目 xxx 与 netcoreapp2.2 (.NETCoreApp,Version=v2.2) 不兼容。项目 xxx 支持:net48 (.NETFramework,Version=v4.8)
- php - 如何在 laravel 中生成动态 mysql 查询?