Przemek, Maurilio:
>produce not output in printer, but I found two files on disk with
>content sent to printer:
>LPT1.prn, PRN.prn
>Perhaps all problem is automatic .prn extension added ?
>This extension is ignored in DOS/Win when device exist, and not ignored
>in OS/2 ?
Confirmed
Deleting ".prn" default extension output goes to printer as should be
harbour\source\rtl\set.c
-------------------------------
hb_set.hb_set_printhan = open_handle( hb_set.HB_SET_PRINTFILE, bFlag,
"", HB_SET_PRINTFILE );
-------------------------------
Przemek: Can you add code ?
Avoid ".prn" default extension if is OS/2 and device exist
David Macias
Norton Guide:
SET PRINTER TO determines the destination of output from all commands
and functions that send output to the printer. This includes @...SAYs
if DEVICE is SET TO PRINTER. Output can be sent to a device or to a
file. If the destination is a device, the following names are valid:
LPT1, LPT2, LPT3 (all parallel ports), COM1, and COM2 (serial ports),
CON and PRN. The default device is PRN.
If the destination is a file, it is created in the current DEFAULT
directory. If a file with the same name exists in the same
location, it
is overwritten by the new file without warning. All subsequent output
to the printer is then written to this file until the file is closed
using SET PRINTER TO with no argument.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour