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

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -