开发者

How can I navigate from a windows phone 7 app to (or point to) a pdf file which is hosted in web server

开发者 https://www.devze.com 2023-03-01 13:50 出处:网络
How can I开发者_运维百科 navigate from a windows phone 7 app to (or point to) a pdf file which is hosted in web server. I want to open the pdf file in the pdf viewer for WP7 app (I believe the current

How can I开发者_运维百科 navigate from a windows phone 7 app to (or point to) a pdf file which is hosted in web server. I want to open the pdf file in the pdf viewer for WP7 app (I believe the current IE for WP7 would not be able to open a pdf file).

Something like

HuperLinkButton.NavigateUri = "http://mypdfserver/a1.pdf"

would work?


You should be able to raise a WebBrowser Task & point to the PDF URI. IE is then going to ask the user to download the Adobe Reader if they do not have it installed. Something like this:

WebBrowserTask browseToPDF = new WebBrowserTask();
browseToPDF.URL = "<server-URI><FileName>.pdf";
browseToPDF.Show();

Hope this helps!

0

精彩评论

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