G
Guest
In the old days of Visual Basic for Applications, I successfully opened a
file (of any file type: .dwg .pdf .doc etc) in its own application using:
ActiveWorkbook.FollowHyperlink Address:=filepath, NewWindow:=True
I don't want to read/write the file, nor to display FileDialog, I just want
to open a named file it in its own application (usually Adobe.pdf).
In Visual Studio 2005 I can successfully find the file using wildcards in:
My.Computer.FileSystem.GetFiles
but neither of the following will open the file or report an error:
System.IO.File.Open(filepath, IO.FileMode.Open)
Microsoft.VisualBasic.FileOpen(1, filepath, OpenMode.Random)
Presumably, I am not using the appropriate Method. Probably the answer's
simple, can anyone help, please?
file (of any file type: .dwg .pdf .doc etc) in its own application using:
ActiveWorkbook.FollowHyperlink Address:=filepath, NewWindow:=True
I don't want to read/write the file, nor to display FileDialog, I just want
to open a named file it in its own application (usually Adobe.pdf).
In Visual Studio 2005 I can successfully find the file using wildcards in:
My.Computer.FileSystem.GetFiles
but neither of the following will open the file or report an error:
System.IO.File.Open(filepath, IO.FileMode.Open)
Microsoft.VisualBasic.FileOpen(1, filepath, OpenMode.Random)
Presumably, I am not using the appropriate Method. Probably the answer's
simple, can anyone help, please?