Thursday, August 02, 2007

How to programatically open acrobat reader?

If you do not want to open acrobat pdf reader to show your pdf. You can always display Acrobat Reader from Internet Explorer. The following code snippet is done in C#. Import System.Diagnostics namespace in order to use the Process class.


Process.Start(@"C:\Program Files\Internet Explorer\iexplore.exe", @"file://Help.pdf")
or

// This will use the the default registered application to launch the document
Process.Start( @"file://Help.pdf")

No comments: