Display PDF from a stream in a WebBrowser control

人走茶凉 提交于 2019-12-10 03:06:11

问题


How can I display a PDF document from a MemoryStream within a WebBrowser control?

I've searched around and found I can simply navigate to a PDF file using:

webBrowser1.Navigate(@"C:\Temp\ExportedPDF.pdf");

However I want to avoid saving the file anywhere, but I'm currently leaning towards using IsolatedStorage simply because I can't find any other method to get the stream into the browser control.

来源:https://stackoverflow.com/questions/3038043/display-pdf-from-a-stream-in-a-webbrowser-control

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