Printing Directly to LPT1 avoiding the printer object.
Printing Directly to LPT1 avoiding the printer object.
Author
Message
Noel Simpso #1 / 4
Printing Directly to LPT1 avoiding the printer object.
Does anyone know how to print directly to lpt1 (or another port) without going through the printer object? Installing a generic text only printer is not an option as it causes a printing problem with another application the prints directly to lpt1.
Thanks
Noel
Wed, 18 Jun 1902 08:00:00 GMT
Joseph M. Erhard #2 / 4
Printing Directly to LPT1 avoiding the printer object.
Quote:
> Does anyone know how to print directly to lpt1 (or another port) without > going through the printer object? Installing a generic text only printer is > not an option as it causes a printing problem with another application the > prints directly to lpt1.
> Thanks
> Noel
Noel, I think it's just
OPEN "LPTx" FOR OUTPUT AS #filnum
PRINT #filnum, stuff$
CLOSE filnum
Luck, Joe
Wed, 18 Jun 1902 08:00:00 GMT
Nocturnal Ramble #3 / 4
Printing Directly to LPT1 avoiding the printer object.
On Wed, 05 Jul 2000 10:55:57 -0400, "Joseph M. Erhardt"
[snip]
Quote:
>Noel, I think it's just
>OPEN "LPTx" FOR OUTPUT AS #filnum
LPrint would print one line at a time in Quick Basic 4.5 I know. LPrint may not be supported under Win9x or VBW5 plus though. Open "Lpt1" for output as #1 is nearly default. You are going to go make me dig up my old Quick Basic 4.5 books aren't you? Open "Prn" for output as #1 may also work.
Quote:
>PRINT #filnum, stuff$
>CLOSE filnum
You could just use Close.
Quote:
>Luck, >Joe
Wed, 18 Jun 1902 08:00:00 GMT
Peter Hesket #4 / 4
Printing Directly to LPT1 avoiding the printer object.
Quote:
>> Does anyone know how to print directly to lpt1 (or another port) without >> going through the printer object? Installing a generic text only printer is >> not an option as it causes a printing problem with another application the >> prints directly to lpt1.
>> Thanks
>> Noel
>Noel, I think it's just
>OPEN "LPTx" FOR OUTPUT AS #filnum
>PRINT #filnum, stuff$
>CLOSE filnum
Yes, that works OK. Note that it is "LPTx" without a colon not like QBasic's "LPTx:")