Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu hyperlinks
Message
De
18/08/2005 18:23:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01042067
Message ID:
01042112
Vues:
39
Thanks Sergy, it works great.

>>Assuming a user has Adobe Acrobat Reader installed on his system, how would you place a hyperlink to a PDF document on a menu dropdown?
>
>Add item to a menu and call ShellExecute when it's selected by user.
DECLARE INTEGER ShellExecute IN shell32.dll ;
>	INTEGER hndWin, ;
>	STRING cAction, ;
>	STRING cFileName, ;
>	STRING cParams, ;
>	STRING cDir, ;
>	INTEGER nShowWin
>lcPdfFileName = FULLPATH("mydoc.pdf")
>ShellExecute(0, "Open", lcPdfFileName, "", "", 1)
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform