开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜