open pdf

G

Guest

Is there a simple way open a pdf file? I'd like to pass in the pdf name and
it opens adobe reader with that pdf file. This is in a windows application.

Thanks!
 
N

Nicholas Paldino [.NET/C# MVP]

RR,

Just use the Process class, passing the name of the file to the
constructor. The OS will interpret the name of the file and launch it in
the program meant to handle it (in this case, Adobe Acrobat).

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top