Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why ShellExecute doesn't want to print?
Message
De
23/01/2007 17:07:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00991103
Message ID:
01188377
Vues:
21
This message has been marked as the solution to the initial question of the thread.
I've tried the following and it works for me.

lfilename='c:\test.bmp'
*!* declare the shellexecute parameters
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow

*!* execute Printto option for shellexecute
*!* where lfilename = document to be printed
*!*
LOCAL lretval
lretval=ShellExecute(0, "Printto", (lfilename), ["]+SET('PRINTER',3)+["], 0,1)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform