How do I open a external .pdf file?

kdawg219

Member
Joined
Oct 24, 2005
Messages
6
Programming Experience
1-3
I have a list of reports that come up for the user to select. This list is a directory containing the reports in .pdf format. How do I code to open up the .pdf file?
 
One more question

I am getting the error "system cannot find the file specified"

This is the code:

Dim thisFile as Object
Dim newName as String

NewName = CType(thisfile, string)

Try
process.start(newname)
Catch
yada
End Try

Any idea why it is not finding the selected file?
 
Resolved - Nevermind, figured it out :)

Got it, I was stripping the directory path and needed to add that to it when starting it.
 
Back
Top