Results 1 to 4 of 4

Thread: opening acrobat reader document using VB

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    6

    Re: opening acrobat reader document using VB

    hi all

    i do own an acrobat writer
    but can i create a object of it and save the file
    set passwd to it
    plz let me know how can it be done
    can u fwd some code

    thnks and regds
    paresh

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: opening acrobat reader document using VB

    VB Code:
    1. Option Explicit
    2.  
    3. 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
    4.  
    5. Private Const SW_SHOWNORMAL = 1
    6.  
    7. Private Sub Command1_Click()
    8. ShellExecute Me.hwnd, vbNullString, "CEO_EEOAA_2005.pdf", vbNullString, "C:\", SW_SHOWNORMAL
    9. End Sub

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