set printer to "Johns_HP_Laserjet"
set printer to "Johns_HP_Laserjet"
try function SETDEFAULTEXTENSIONS( .F. ) before set printer to, will create printfile without .prn extension.
Hi,
I did this: ( i'm very happy ! )
Fist: i print to temporaly spool file.
Next: __run( 'cat /tmp/spoolfile | lp -d printer' )
To direct print see contrib/hbcups
Regardless
Marcelo
--
Enviado do aplicativo myMail para Android
--
local sPrinter := SET(_SET_PRINTFILE, "|lpr" )
local sDevice := SET(_SET_DEVICE, "PRINTER" )
@ 0,0 say "Something to print"
SET(_SET_DEVICE, sDevice)
SET(_SET_PRINTFILE, sPrinter )