Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why ShellExecute doesn't want to print?
Message
 
 
À
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:
01188381
Vues:
15
>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)
Worked for me as well. Now I have 10 different solutions to choose from. <g>

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform