Carlos said:
How do I open a PDF from Visual Basic?
Depends what you mean by "open" -- ShellExecute is the way to open it with the
default application. Here, change "print" to "open" and this'll do:
Private Declare Function ShellExecute Lib "shell32.dll" _
Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation
As String, ByVal lpFile As String, ByVal lpParameters As String,
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Public Function PrintDoc(ByVal DocFile As String) As Long
' Uses the "print" verb as defined in the registry
PrintDoc = ShellExecute(0&, "print", DocFile, vbNullString, vbNullString,
vbNormalFocus)
End Function
From
http://vb.mvps.org/samples/HyperJmp