我如何支持在浏览器中显示在Internet Explorer 64位PDF文件 [英] How can I support in-browser display of a PDF file in Internet Explorer 64-bit

查看:8669
本文介绍了我如何支持在浏览器中显示在Internet Explorer 64位PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的Adobe似乎不​​支持PDF文件的显示在浏览器中使用64位版本的Internet Explorer时。一旦一个PDF链接被点击了64位Internet Explorer将始终跨越一个新的Adobe窗口来显示PDF格式。 32位Internet Explorer将显示嵌入在浏览器本身的PDF。

Adobe does not seem to support the display of PDFs in the browser when using the 64-bit version of Internet Explorer. Once a pdf link is clicked the 64-bit Internet Explorer will always span a new Adobe window to display the pdf. The 32-bit Internet Explorer will display the pdf embedded in the browser itself.

我使用一个64位符合的WinForms .NET应用程序WebBrowser控件时,注意到了这个问题。我不相信这是可以使用32位WebBrowser控件中的64位应用程序,所以我在找一些解决问题的对策,即使它需要使用第三方插件。

I noticed this issue when using the WebBrowser control in a 64-bit complied WinForms .NET application. I don't believe it's possible to use the 32-bit WebBrowser control in the 64-bit application so I am looking for some solutions to this problem even if it requires the use of a third party plug-in.

任何建议将是极大的AP preciated。

Any suggestions would be greatly appreciated.

感谢。

推荐答案

如果你的平台的目标必须是64位,而你需要使用的x64兼容功能,那么显然你有一个问题。你将不得不妥协的一方或另一方。

If you platform target needs to be x64, and your need to use an x64-incompatible feature, then clearly you have an issue. You're going to have to compromise on one side or the other.

另外,你可以看看的PDF阅读器中打开一个单独的进程和新衍生进程窗口的父窗口设置为您的容器控件。这将有嵌入窗口的控制范围内的影响。然后,您可以强力去除边框和最大化。的Windows API,来救援!请查看苏门答腊PDF 如果你决定走这条路,这你大概可以分配没有任何麻烦。

Alternatively, you could look into opening a separate process for the PDF viewer and setting the parent window of the newly spawned process' window to your container control. This will have the effect of "embedding" the window within your control. You can then forcefully remove the border and maximize it. Windows API, to the rescue! Check out Sumatra PDF if you decide to go this route, which you can probably distribute without any trouble.

这篇关于我如何支持在浏览器中显示在Internet Explorer 64位PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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