Launch PDF Windows Phone 7.1 without Component One -


i have pdf file in assets folder in windows phone 7.1. want open pdf file. uptil have found many examples using component 1 controls. dont want use component one. know can't open pdf in application using native libraries. there way open pdf assets in web browser or can launch installed pdf reader application?

any idea?

windows phone 8:

you can write following code in order open pdf files (you need pdf reader app):

private async void button1_click(object sender, routedeventargs rea)  {     // access file. in case, local folder     storagefolder local = windows.storage.applicationdata.current.localfolder;      // access pdf file     storagefile file = await local.getfileasync("your_filename.pdf");      // launch query.     windows.system.launcher.launchfileasync(file); } 

windows phone 7:

there no way without third party library componentone or telerik.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -