Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.xharbour / Re: LPT1 on Windows 11

SubjectAuthor
* LPT1 on Windows 11Dan
`- LPT1 on Windows 11Marco Boschi

1
LPT1 on Windows 11

<tq5s7t$36kv5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10695&group=comp.lang.xharbour#10695

  copy link   Newsgroups: comp.lang.xharbour
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: webmas...@appliserver.com (Dan)
Newsgroups: comp.lang.xharbour
Subject: LPT1 on Windows 11
Date: Tue, 17 Jan 2023 11:11:06 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <tq5s7t$36kv5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 17 Jan 2023 10:11:09 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="bec187baeafe0f3431dff77798c76457";
logging-data="3363813"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y29rYLZLadqfdlzXKsVH1"
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:3ep/ABJKAXvOOZuTam5LqZ2KPCQ=
 by: Dan - Tue, 17 Jan 2023 10:11 UTC

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

Re: LPT1 on Windows 11

<3891801a-1f36-4952-bd49-83b1c38402d1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10696&group=comp.lang.xharbour#10696

  copy link   Newsgroups: comp.lang.xharbour
X-Received: by 2002:ac8:5c14:0:b0:3a8:2e9f:6ae9 with SMTP id i20-20020ac85c14000000b003a82e9f6ae9mr72152qti.293.1673964204410;
Tue, 17 Jan 2023 06:03:24 -0800 (PST)
X-Received: by 2002:a25:cf08:0:b0:6f7:dc52:d2cc with SMTP id
f8-20020a25cf08000000b006f7dc52d2ccmr500937ybg.292.1673964204176; Tue, 17 Jan
2023 06:03:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.xharbour
Date: Tue, 17 Jan 2023 06:03:23 -0800 (PST)
In-Reply-To: <tq5s7t$36kv5$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=185.55.90.130; posting-account=_oyAawkAAAAkDmcMkD9UQrwxJqiaol5l
NNTP-Posting-Host: 185.55.90.130
References: <tq5s7t$36kv5$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3891801a-1f36-4952-bd49-83b1c38402d1n@googlegroups.com>
Subject: Re: LPT1 on Windows 11
From: inf...@marcoboschi.it (Marco Boschi)
Injection-Date: Tue, 17 Jan 2023 14:03:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2284
 by: Marco Boschi - Tue, 17 Jan 2023 14:03 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor