Hi Bill,
Jimmy's suggestion works very well, although if the computer has a
physical LPT1 port I would use a higher LPT number for the redirection
in order not to end up with circular redirection between the physical
LPT1 and the virtual LPT1.
Another way is to use Harbour's win_PrintFileRaw() function from the
hbwin contrib. The docs at Pete's site
(
https://github.com/Petewg/harbour-core/wiki/HBWIN) say:
---------------
win_PrintFileRaw(<cPrinterName>, <cFileName>) ➜ nBytesWritten
sends contents of file cFileName to printer cPrinterName. Returns number
of bytes printed or negative value on error.
---------------
It works with any printer that is installed in Windows, using the
printer name from Control Panel, provided that the printer understands
raw text and escape codes.
You have to call the function yourself after creating the file and then
delete the file when done.
Regards,
Klas