Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Initiate Adobe Acrobat Programatically
Message
 
To
17/12/2005 15:16:50
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01078907
Message ID:
01079012
Views:
23
> I need a way to close down Adobe Acrobat as the person quits from the application.

Mike,

With some API functions, a VFP application can access the main menu of the Adobe Reader 7 to:
- read the list of open PDF documents
- close a document window or all document windows
- close the main Acrobat window

FoxPro code sample (members area):
Accessing Adobe Reader 7.0 main menu from VFP application
http://www.news2news.com/vfp/?example=495

The class can be modified to work with previous Acrobat version.

API functions used:
FindWindow
GetMenu
GetMenuItemCount
GetMenuItemID
GetSubMenu
GetWindowText
IsMenu
IsWindow
SendMessage
ShellExecute
SwitchToThisWindow
Previous
Reply
Map
View

Click here to load this message in the networking platform