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

  • June 27, 2017
  • 1 reply
  • 2522 views

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 has been closed for replies.

1 reply

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.

Bernd Alheit
Community Expert
Community Expert
June 28, 2017

It will not work with Acrobat Reader.

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?