Opening a pdf from within program

T

Tony K

How would I open a pdf from the application.startup path? (assuming the user
has a pdf reader available)

Thanks,
Tony
 
H

Herfried K. Wagner [MVP]

Tony K said:
How would I open a pdf from the application.startup path? (assuming the
user has a pdf reader available)


Take a look at th 'System.Diagnostics.Process.Start' method. You can use
'System.IO.Path.Combine' to create the full path of the PDF file.
 
T

Tony K

Herfried K. Wagner said:
Take a look at th 'System.Diagnostics.Process.Start' method. You can use
'System.IO.Path.Combine' to create the full path of the PDF file.

Thank you Herfried.
 
K

kimiraikkonen

How would I open a pdf from the application.startup path? (assuming the user
has a pdf reader available)

Thanks,
Tony
Hi,
Also you can use:

Dim p As New System.Diagnostics.ProcessStartInfo(<path>,args..)
p.WorkingDirectory = Application.StartupPath
 

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