These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

handle Adobe Reader by OLE

rerawa
Registered: May 5 2010
Posts: 10

Hello people,
 
when start Adobe Acrobat (not Adobe Reader) in my VB-project by set AcroApp = createObject("AcroExch.App") and open a Document by set AVDoc = chreatObject("AcroExch.AVDoc") and AVDoch.open "c:\test.pdf" it's work fine.
 
Now I want start this project on a pc with Reader-installation, then I take a runtime error "429" by set set AcroApp = createObject("AcroExch.App")
 
How can I get the Reader Application per VB? Is there any chance?
 
Thanks for your answers
 
rerawa
 
PS: dont worry, english isn't my first language, but I hope, you can understand me.

My Product Information:
Reader 9.3, Windows
UVSAR
Expert
Registered: Oct 29 2008
Posts: 1357
On Windows, the only OLE automation supported for Adobe Reader is the PDF browser controls interface, which enables you to treat a PDF document as an ActiveX document within an external application.

PDF browser controls are available through the AxAcroPDFLib.AxAcroPDF interface, which provides several methods to control the PDF document window, such as

GotoNextPage
GotoPreviousPage
LoadFile
Print


For detailed information, see the Acrobat 9 SDK documentation, which has a chapter called "Developing for Adobe Reader".
rerawa
Registered: May 5 2010
Posts: 10
Hello UVSAR,

thanks for post.

I would start a connect to Reader by this interface (set aApp = createObject(AxAcroPDFLib.AxAcroPDF). Unfortunately I get the same runtime error "429".

Is there in the anywehre in the wide world how has an idea, what is the way to take the reader-interface?

Thanks for your answers
rerawa