Skip to main content
Participating Frequently
June 27, 2017
Question

How to programmatically get Acrobat Reader to switch to the "Read Mode (Ctrl-H)" mode

Hello.

I'm trying to use OLE Automation for Acrobat Reader in my application on VFP. There are no problems anywhere, but I came across a question that I can not find the answer to: How do I programmatically get Acrobat Reader to enter the "Read Mode (Ctrl-H)" mode?

AdobeApp = createObject ('AcroExch.App')

AdobeDoc = createObject ('AcroExch.AVDoc')

AdobeDoc.open (AdobeFileName, '')

AdobeForm = createObject ('AFormAut.App')

AdobeFields = AdobeForm.fields

AdobeApp.Show

AdobeDoc.BringToFront ()

? go into Read Mode (Ctrl-H)

Thanked in advance for help

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

Participating Frequently
June 28, 2017

Deployed using the JS Console Arcodat and the command app.listMenuItems ()
The result is a working code:

AdobeApp = createObject ('AcroExch.App')
AdobeDoc = createObject ('AcroExch.AVDoc')
AdobeDoc.open (AdobeFileName, '')
AdobeForm = createObject ('AFormAut.App')
AdobeFields = AdobeForm.fields

AdobeApp.Show
AdobeDoc.BringToFront ()
AdobeApp.MenuItemExecute ("ReadingMode")

Thanks to all.

Translate
Bernd Alheit
Community Expert
Community Expert
June 28, 2017

It will not work with Acrobat Reader.

Translate
Participating Frequently
June 28, 2017

I debugged my application for two days.
AdobeApp.Show caused the launch of Acrobat Reader DC, everything was fine.
After I received a list of menu commands from the Acrobat js console, AdobeApp.Show began to call Acrobat. The default pdf-file handler is Acrobat Reader.

What could have happened?

Translate