64位应用程序上的Interop.acropdflib.dll问题 [英] Interop.acropdflib.dll issue on 64bit application

查看:474
本文介绍了64位应用程序上的Interop.acropdflib.dll问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我们的应用程序升级到64位,并将usercontrol(使用Interop.AcroPDFLib.dll显示PDF文档)项目构建平台目标更新为任何CPU。

该应用程序崩溃后加载PDF用户控件。



我尝试过:



安装Adobe Reader DC并创建新的互操作文件。

Upgraded our application to 64 bit and updated the usercontrol (which uses Interop.AcroPDFLib.dll for showing PDF docs) project build platform target to 'Any CPU'.
After that application is crashing while loading the PDF user control.

What I have tried:

Installed Adobe reader DC and created new interop files.

推荐答案

您需要在usercontrol中显示这个Adobe ActiveX控件吗?我建议首先让shell命令处理默认的Windows环境pdf开启器,这样你就不必在你的控件中执行此操作。但是,我当然无法为您的申请做出决定。



如果你想获得一个很好的解决方案,请阅读这篇文章: ASP-NET-PDF-Viewer-User-Control 这个例子是vb,但对我来说不会有问题。



我还将我的pdf转换为html,因为每个现代浏览器都有支持。

这也更容易在用户控件中实现,因为你已经有了这方面的标准。我使用: pdf to html [ ^ ]
Adobe ActiveX controls you need to show this in the usercontrol? I would suggest in first place to just let the shell-command handle the default windows environment pdf opener so you don't have to do this in you control. But of course I can't make that decision for your application.

If you want a good solution for getting ride of it read this article: ASP-NET-PDF-Viewer-User-Control The example is vb but wouldn't be a problem for you I quess.

Also I converted my pdf to html because every modern browser has support.
This is also way easier to implement in your user control because you already have standards for this. I use: pdf to html[^]


这篇关于64位应用程序上的Interop.acropdflib.dll问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆