Anyone have a way to launch and view pdf documents from within VB?
Printable View
Anyone have a way to launch and view pdf documents from within VB?
Try this:
Code: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
Private Sub Command1_Click()
ShellExecute Me.hwnd, vbNullString, "c:\document.pdf", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
Nice just what I was looking for...Thanks :)