开发者

windows phone webbrowser control file download

I have a file hosted in a secured site (https), so I use the web browser control to pass the URL and the headers for authentication. Can the WebBrowser control render the document/pdf files just like the phone native browser. Even the public document(not secure) are not rendering. Does the webbrowser control similar to the native phone IE when it comes to file downlo开发者_如何学Pythonad?


If you just want to open a PDF from a web location you'll have to do:

new WebBrowserTask 
    { 
        Uri = new Uri("http://path.to/file.pdf", UriKind.Absolute)
    }.Show();

This depends on the user having the Adobe, PDF viewer app installed on their phone. There's no way to show a PDF document within the WebBrowser control.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜