General information
Category:
Windows API functions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only