Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Initiate Adobe Acrobat Programatically
Message
 
À
17/12/2005 15:16:50
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01078907
Message ID:
01079012
Vues:
24
> 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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform