Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why ShellExecute doesn't want to print?
Message
From
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:
01188377
Views:
20
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform