Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jul 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Opening Acrobat from a VB program (VB)

    I am trying to write a VB program that opens Adobe Acrobat without using the shell command.
    Does anyone have any suggestions how to achieve this?

  2. #2
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Opening Acrobat from a VB program (VB)

    You can use the Acrobat Control for ActiveX, pdf.ocx. You will probable have to browse for it the first time. It will be wherever you have installed the reader. See this thread for details. HTH --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Opening Acrobat from a VB program (VB)

    Maybe DDE?

    There is a WinAPI function similar to "execute process" that you might use to invoke a program withing the shell command. But although I have read code samples from the MSKB or MSDN, they didn't sink in, and it seemed like a lot more work for little more payoff. The main payoff seemed to be having an explicit hWnd to work with.

Posting Permissions

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