Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print rich text from a Text Box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00145964
Message ID:
00146309
Vues:
35
>Thanks for the info, George! I am not familiar with ShellExecute() - I assume it is a call to something in the Win32 api: does this allow you to run an EXE with its command line - like the VFP's RUN command?
>
Hi Rick,

ShellExecute is not part of what VFP considers the API, yet it's part of Windows. Here's the information you'll need:
DECLARE INTEGER ShellExecute IN Shell32;
  INTEGER hwnd, STRING @lpOperation, STRING @lpFile,;
  STRING @lpParameters, STRING @lpDirectory, SHORT nshow
lcoperation = 'print'
lnshow = 7 && Minimized/inactive
* lcfile is the file to print
lcdir = JUSTPATH(lcfile) && VFP 5.0 in Foxtools
lcparms = ""
lnresult = ShellExecute(0, @lcoperation, @lcfile, @lcparms, @lcdir, lnshow)
hth,
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform