Results 1 to 4 of 4

Thread: Opening a pdf-document

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    Is it possible opening a pdf-document using Acrobar Reader in Visual Basic?

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    yup,

    install acrobat reader and look in the ActiveX folder under the reader folder in the acrobat directory (if that makes any sense) there you will find the type library, add a reference to it in your vb project and away you go.
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049
    How do I open the file?
    Great, thanks, but what if I want to open the Acrobat Reader like opening the winhelp?


    Code:
    Private Sub Command4_Click()
    WinHelp Me.hwnd, App.Path & "\Help_reducers.hlp", 9&, 0&
    End Sub

  4. #4
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    Every different library has it's own syntax i'm afraid, opening a pdf may not be similar to opening a winhelp file, the best thing to do is hit f2 and browse the library in the object browser and find out how to do this, I only tried it on an ad-hoc basis, I know about as much as you do - that it's possible.
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

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