Open PDF file from folder inside project in Windows Store App C# -


i working on windows store app. have folder named pdf in solution in have 1 pdf file named "sample.pdf". want open pdf file using code inside application. have seen many links not find useful

help?

you need let system open file in default viewer using launchfileasync.

               storagefile file = await windows.applicationmodel.package.current.installedlocation.getfileasync(@"pdf\file.pdf");                windows.system.launcher.launchfileasync(file); 

Comments

Popular posts from this blog

Prolog - Listing -

python - can't seem to get an output from my class -

orchardcms - change base url in local copy in Orchard CMS -