// creates disk file Kyocera FS-1000 (KPDL-2)"
// before it was Kyocera FS-1000 (KPDL-2).prn"
SET PRINTER TO ( Printername )
This won't work either way, it's Windows printer name.
// creates disk file 'IP_10.0.40.30'
// before it was 'IP_10.0.40.30.prn'
SET PRINTER TO ( Portname )
This also
Hello Viktor
<<<
First of turn _SET_DEFEXTENSIONS to .F.,
after that in Harbour you'll need to convert
the Windows printer name to a port, share
name, or filename in order to print to it using
SET PRINTER TO.
>>>
I tried both.
Printername = "Kyocera FS-1000 (KPDL-2)"
Portname= "IP_10.0.40
First of turn _SET_DEFEXTENSIONS to .F.,
after that in Harbour you'll need to convert
the Windows printer name to a port, share
name, or filename in order to print to it using
SET PRINTER TO.
Harbour core doesn't support any Windows
printers natively, so you'll need to use
hbwin.lib for some name
Hello All
Here is the code:
cPrinter := 'Kyocera FS-1000 (KPDL-2)'
SET PRINT ON
SET CONSOLE OFF
SET PRINTER TO ( cPrinter )
? 'Ok, I am printing'
eject
SET PRINTER TO
SET PRINT OFF
SET CONSOLE ON
The code above correctly prints on the specified printer in xHarbour