Click here to Skip to main content
15,910,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to open pdf file (by providing its path) on a button click event. In windows store application, what is the best solution?

What I have tried:

c# - wpf open PDF file in Adobe Reader with a click on a button - Stack Overflow[^]
Posted
Updated 18-Jan-17 3:52am

1 solution

If you're wanting to open a PDF in a default viewer, a simple 1 liner should solve this:
C#
Launcher.LaunchUriAsync(new Uri(uri), new LauncherOptions { ContentType="application/pdf" });
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900