Difference in using WindowsFormsHost over WebBrowser to view PDF files?

≯℡__Kan透↙ 提交于 2019-12-11 05:48:15

问题


I'm creating an application that will heavily use PDF file viewing. Is there a difference/advantage in using WindowsFormsHost over WebBrowser? WebBrowser is just a line of code versus WindowsFormsHost setup. So, I'm curious if there are any advantages of using WindowsFormsHost?


回答1:


WPF WebBrowser control runs in IE protected mode by default, and Adobe PDF Reader plugin is known to have issues with that. Check this question. I'd go with WindowsFormsHost and host PDF Reader ActiveX directly, here's how.



来源:https://stackoverflow.com/questions/18645139/difference-in-using-windowsformshost-over-webbrowser-to-view-pdf-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!