Opening a pdf from within program

  • Thread starter Thread starter Tony K
  • Start date Start date
T

Tony K

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

Thanks,
Tony
 
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.
 
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.
 
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
 
Back
Top