Article View: adobe.reader
Article #4613Re: Automating PDF using QTP 9.1
From: Robert_Helperin
Date: Mon, 06 Oct 2008 19:56
Date: Mon, 06 Oct 2008 19:56
20 lines
1244 bytes
1244 bytes
Regarding Adobe Reader API, I know it's very limited, but all I need to do is open a file and go to a particular page. I've tried:
With AcroPDF1
.LoadFile "C:\test.pdf"
.setCurrentPage 3
End With
which gives me "Runtime Error 424, Object Required," and I've tried:
Dim AcroPDDoc As Object
Set AcroPDDoc = CreateObject("AcroExch.PDDoc")
Set pdDoc = CreateObject("AcroExch.PDDoc")
which gives me "Runtime error 429, Activex component can't create object."
I've made sure all References to anything Adobe or Acrobat are checked off (I'm programming in MS Access using VB).
What am I missing?
Thanks.
Technical Details
Message-ID:
<59b58299.25@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.arglkargh.de!news.buerger.net!news4us.nl!webcrossingReferences:
<59b58299.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,fa5e45f7624d35d1 X-Google-Attributes: gid10273d,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Robert_Helperin@adobeforums.com Newsgroups: adobe.reader Subject: Re: Automating PDF using QTP 9.1 Message-ID: <59b58299.25@webcrossing.la2eafNXanI> Date: Mon, 6 Oct 2008 12:56:56 -0700 References: <59b58299.-1@webcrossing.la2eafNXanI> Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.arglkargh.de!news.buerger.net!news4us.nl!webcrossing