Results 1 to 16 of 16

Thread: Adding pdf.ocx in VB6?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Adding pdf.ocx in VB6?

    I have a strange problem.
    I wish to browse a pdf-file from VB6, so I have created a form with a picturebox and the code below:

    VB Code:
    1. Form7.Pdf1.src = "http://www.logstor.com/productcatalogue/uk/uk_4_5.pdf"

    And this has been working, but now I receive this error when making the project file:

    Code:
    Compile Error. Method or data member not found.
    What is going on?????

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hpl,

    What is Pdf1?

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Adding pdf.ocx in VB6?

    Pdf1 is the picturebox

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hpl,

    So on what line do you get an error?

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Adding pdf.ocx in VB6?

    At this line
    Form7.Pdf1.src = "http://www.logstor.com/productcatalogue/uk/uk_4_5.pdf"

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hpl,

    The is no such property (src) for a picturebox.

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Adding pdf.ocx in VB6?

    But I have used this code in 3 years without any problems, but since I've installed Acrobat Reader 7.0 everything is going wrong

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hpl,

    Then pdf1 is not a VB6 PictureBox. It must be a Acrobat PictureBox and you must add in the Acrobat component or reference if any.

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

    Re: Adding pdf.ocx in VB6?

    I found the pdf.ocx, or at least a trial version of it, anyways.
    It cost $50 otherwise.

    http://www.soft32.com/download_24138.html

  10. #10
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hpl,

    Doesn't the pdf viewer get installed when you install Acrobat? Just add the component to your project.

  11. #11
    Addicted Member VbMafia's Avatar
    Join Date
    Sep 2004
    Location
    Pilipinas
    Posts
    177

    Re: Adding pdf.ocx in VB6?

    You can download pdf.ocx from www.download.com
    " I never did anything worth doing entirely by accident.... Almost none of my inventions were derived in that manner. They were achieved by having trained myself to be analytical and to endure and tolerate hard work."

    " Many of life's failures are experienced by people who did not realize how close they were to success when they gave up. "
    - Thomas Alva Edison-

    In God We Trust

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Adding pdf.ocx in VB6?

    Quote Originally Posted by randem
    hpl,

    Then pdf1 is not a VB6 PictureBox. It must be a Acrobat PictureBox and you must add in the Acrobat component or reference if any.

    How do I add a Acrobat Picturebox, and where do I add the Acrobat component/object?

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hpl,

    In VB6, go to Project->Components then select the component. Then you can add it to your form.

  14. #14

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Adding pdf.ocx in VB6?

    And what is the component name? I can't find it

  15. #15
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Adding pdf.ocx in VB6?

    hppl,

    Adobe Acrobat 7.0 Browser Control Type Library.

  16. #16

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Re: Adding pdf.ocx in VB6?

    Great, Now it works, 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