Solved

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

Posted on 2011-09-19
5
489 Views
Last Modified: 2013-12-17
Hi,
How to get the application name, in c#, which is the default PDF reader in the machine? With VS2005 c#.
Thanks.
0
Comment
Question by:bobdylan75
5 Comments
 
LVL 10

Accepted Solution

by:
eguilherme earned 250 total points
ID: 36559878
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
 
LVL 22

Expert Comment

by:Ivo Stoykov
ID: 36559881
try this

HTH

Ivo Stoykov
string path = "mypdf.pdf";

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

Open in new window

0
 
LVL 14

Assisted Solution

by:nishant joshi
nishant joshi earned 250 total points
ID: 36559892
0
 
LVL 14

Expert Comment

by:nishant joshi
ID: 36559967
0
 

Author Closing Comment

by:bobdylan75
ID: 36565142
Thanks,
I have to analyze the two codes in order to find my personal solution.
thanks.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now