Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why ShellExecute doesn't want to print?
Message
 
 
To
23/01/2007 17:07:53
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00991103
Message ID:
01188381
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform