Skip navigation
Currently Being Moderated

Error when opening a pdf file

Mar 4, 2010 7:06 AM

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



  • Currently Being Moderated
    Mar 5, 2010 11:12 AM   in reply to mgregg2970

    Please see the document 'Interapplication Communication API Reference' in the Acrobat SDK. Reader doesn't support the AcroExch methods. You can use the DDE methods. For more quesitions, please visit the SDK forum:


    You should still be able to record and playback UI events in Reader.


    Thanks - John Briere

    Engineering Manager, Acrobat Production Engineering

    Mark as:
  • Currently Being Moderated
    Jan 6, 2011 12:40 AM   in reply to mgregg2970

    Hi Mike,


    Did u get the answer?

    Even i am also facing the same problem.

    I have one pdf file saved on my desktop.

    I have to open that pdf file through qtp script. I have installed QTP10, Adobe APTT(Acro QTP) plug in.

    how can i do this.

    Plz help me.



    Mark as:
  • Currently Being Moderated
    Jan 12, 2011 10:21 PM   in reply to mgregg2970

    Hi Mike,


    Sorry for the late reply. I was on vacation.

    Thank you very much for your reply.

    My prob got solved by using




    Anusha Pappula

    Consultant | HSBC CML Testing Team

    Financial Services Global Business Unit

    Phone: +91 020 27601000 / Extn: 2032335/

    Mobile: +91 88888 04393

    B-1, Cerebrum IT Park, Kalyani Nagar, Pune – 411014 INDIA

    Mark as:
  • Currently Being Moderated
    Mar 1, 2011 2:16 AM   in reply to mgregg2970

    If your probelm is still unsolve. My recomendation is to try Classic PDF Editor, its working fine with me. Thanks

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points