5 Replies Latest reply on Mar 1, 2011 2:16 AM by Jimmytech

    Error when opening a pdf file

    mgregg2970 Level 1

      I have QTP 10.0 and Adobe reader 9.3 installed on my machine. The machine I am using is a VMware device.


      I have downloaded and installed the PDF Test Toolkit and the Adobe SDK.

      For QTP I have the ActiveX, Web and Adobe add ins loaded.


      I do not have Acrobat loaded. 


      For my first script all I wanted to do was open an existing PDF. I used the code displayed below.


      Option Explicit


      Dim gApp
      Dim gPDDoc


      '###  Create objects required for the test
      Set gApp = CreateObject("AcroExch.App")
      Set gPDDoc = CreateObject("AcroExch.PDDoc")


      '###  Open a PDF Document


      gPDDoc.Open ("C:\TestData\PerfOnVMware")


      '###  Kill all created objects
      Set gPDDoc = Nothing
      Set gApp = Nothing




      For both Set statements (in italics) I am getting the following message


      "ActiveX Component Can't Create Object "AcroExch.App"




      Also, as to the instructions. I read the instructions to mean that you need the Adobe Reader OR Adobe Acrobat. However in some of the research I have been doing on other boards many of the solutions indicate that Acrobat is required. Can some one take a moment and clarify what I will need installed on each machine in order to create and execute scripts.


      Any thoughts would be helpful