Hi all,
after upgrading the OS to Windows 11 a customer of mines was not able anymore to print to LPT1 from the (old) program made with xHarbour (and GTWVW).
The LPT1 is a networked printer (an Epson dot matrix). The mapping is
OK, f.e. a simple dir>LPT1 prints regularly, and is managed by a batch
that maps the printer and start the program (net use... etc).
The program instead does not print. It uses a simple SET PRINTER TO LPT1 Happily, a file prn.prn is created, with the desired output.
So the workaround could be to shell a COPY prn.prn LPT1 after the
printing (ugh).
I also tried SET PRINTER TO TEST.PRN and the result is an empty TEST.PRN
and again the file prn.prn containing the desired output.
Anybody experienced the same issue? From Microsoft docs it appears that
some versions of Windows do have a bug related to the direct printing to
a networked printer.
Dan
Il giorno martedì 17 gennaio 2023 alle 11:11:11 UTC+1 Dan ha scritto:I have the same problem. prn.prn file is created.
Hi all,
after upgrading the OS to Windows 11 a customer of mines was not able anymore to print to LPT1 from the (old) program made with xHarbour (and GTWVW).
The LPT1 is a networked printer (an Epson dot matrix). The mapping is
OK, f.e. a simple dir>LPT1 prints regularly, and is managed by a batch that maps the printer and start the program (net use... etc).
The program instead does not print. It uses a simple SET PRINTER TO LPT1 Happily, a file prn.prn is created, with the desired output.
So the workaround could be to shell a COPY prn.prn LPT1 after the
printing (ugh).
I also tried SET PRINTER TO TEST.PRN and the result is an empty TEST.PRN and again the file prn.prn containing the desired output.
Anybody experienced the same issue? From Microsoft docs it appears that some versions of Windows do have a bug related to the direct printing toDan,
a networked printer.
Dan
do you set this before to launch the program?
NET USE LPT1: \\server\printer
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 339 |
Nodes: | 16 (2 / 14) |
Uptime: | 09:25:55 |
Calls: | 7,486 |
Files: | 12,704 |
Messages: | 5,635,824 |