Results 1 to 4 of 4

Thread: opening acrobat reader document using VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    6

    Thumbs up opening acrobat reader document using VB

    hi all
    i want to open an acrobat reader file using Vb
    as we create an object of word,or excel
    can we create an object for acrobat reader and open a
    pdf doc and then save it
    can anyone suggest me some code
    can someone plz send some piece of code

    thanks and regds

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: opening acrobat reader document using VB

    I don't think that you'd be able to save it, or even modify it without owning Acrobat, instead of AcroRead.

  3. #3

    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

  4. #4
    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