• LPT1 on Windows 11

    From Dan@21:1/5 to All on Tue Jan 17 11:11:06 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Marco Boschi@21:1/5 to All on Tue Jan 17 06:03:23 2023
    Il giorno martedì 17 gennaio 2023 alle 11:11:11 UTC+1 Dan ha scritto:
    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

    Dan,
    do you set this before to launch the program?

    NET USE LPT1: \\server\printer

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From info sys@21:1/5 to Marco Boschi on Wed Mar 22 10:50:23 2023
    On Tuesday, January 17, 2023 at 10:03:25 AM UTC-4, Marco Boschi wrote:
    Il giorno martedì 17 gennaio 2023 alle 11:11:11 UTC+1 Dan ha scritto:
    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
    Dan,
    do you set this before to launch the program?

    NET USE LPT1: \\server\printer
    I have the same problem. prn.prn file is created.
    The necessary share that Marco mentioned is mapped, but it does not make a difference. In earlier Windows, no prn.PRN file is created regardless of mapped share.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dlzc@21:1/5 to All on Thu Mar 23 08:47:52 2023
    I don't know if this will be of any help, but:

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/deployment/enable-plug-play-for-parallel-port-devices

    https://learn.microsoft.com/en-us/windows-hardware/drivers/parports/installing-parallel-ports-and-devices

    ... they are at least current.

    David A. Smith

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)