> 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 applicationhttp://www.news2news.com/vfp/?example=495The class can be modified to work with previous Acrobat version.
API functions used:
FindWindow
GetMenu
GetMenuItemCount
GetMenuItemID
GetSubMenu
GetWindowText
IsMenu
IsWindow
SendMessage
ShellExecute
SwitchToThisWindow