Control to display pdf file in VB 6.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cheng Bunhok
    New Member
    • Sep 2010
    • 3

    Control to display pdf file in VB 6.0

    I'm doing the project using VB 6.0 and I want to display pdf file on the form. In my machine I've installed Adobe Acrobat 6.0 Professional and I can't find the control to add to the VB project to display the pdf file.So I want to know the control.

    Anybody have any solution?
    Thanks you in advance.
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    Look for "Adobe...."
    For the reader it's "Adobe Acrobat 7.0 browser..." (see attachment)
    Example of the code:
    Code:
    AcroPDF1.LoadFile ("D:\##PC TALEN##\vb6\vb.mvps.org\vsm20080327_simple asynchrous downloads.pdf")
    Attached Files

    Comment

    • Cheng Bunhok
      New Member
      • Sep 2010
      • 3

      #3
      Thanks for your solution. But I only found the Pdf.ocx in the adobe. Cos my machine have installed the Adobe Acrobat 6.0 Professional. Now I used it in my project.The problem with this control When I open the pdf file to display on that control first time it's working,but the second time I want to open other pdf file it shows error or it doesn't display that pdf file.

      Any solution for that problem?
      Thanks you in advance.

      Comment

      • Guido Geurs
        Recognized Expert Contributor
        • Oct 2009
        • 767

        #4
        I have installed Adobe 6.0 Pro and VB6 tells me that the OCX is not a valid control.
        The only DLL for viewing a PDF is from the viewer=
        "C:\Program Files\Common Files\Adobe\Acr obat\ActiveX\Ac roPDF.dll"

        Visible in VB controls is = "Adobe Acrobat 7.0 browser..."

        Comment

        • Cheng Bunhok
          New Member
          • Sep 2010
          • 3

          #5
          No I've search on the internet I've known that Pdf.ocx is for Acrobat 6.0 or 5.0 Pro and the AcroPDF.dll is for Acrobat 8.0 Pro. And my problem the first time I open the pdf file to display on that control it's working,but the second time I open the other pdf file to display on that control again it shows error : "Could not find Adobe Acrobat" and "Could not find Acrobat External Window Handler.".

          Sir do you have any solution to solve that?
          Thanks you in advance.

          Comment

          Working...