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!
精彩评论