How to get the application name, in c#, which is the default PDF reader in the machine? With VS2005 c#.

Hi,
How to get the application name, in c#, which is the default PDF reader in the machine? With VS2005 c#.
Thanks.
bobdylan75Asked:
Who is Participating?
 
eguilhermeConnect With a Mentor Commented:
check here for a generic function,

its in vb.net but should be easy to convert to c#

http://windevblog.blogspot.com/2008/09/get-default-application-in-windows-xp.html
0
 
Ivo StoykovCommented:
try this

HTH

Ivo Stoykov
string path = "mypdf.pdf";

// open in default PDF application
Process process = Process.Start(path);

Open in new window

0
 
nishant joshiConnect With a Mentor Technology Development ConsultantCommented:
0
 
nishant joshiTechnology Development ConsultantCommented:
0
 
bobdylan75Author Commented:
Thanks,
I have to analyze the two codes in order to find my personal solution.
thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.