Results 1 to 3 of 3

Thread: Launch and view pdf documents

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    U.S.A.
    Posts
    75

    Arrow

    Anyone have a way to launch and view pdf documents from within VB?

  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    KC
    Posts
    72

    Lightbulb

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    U.S.A.
    Posts
    75
    Nice just what I was looking for...Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width