Printing Directly to LPT1 avoiding the printer object. 
Author Message
 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  
 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  
 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  
 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:")


Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Printing directly to LPT1: - bypassing the printer driver

2. Directly print to LPT1

3. Printing directly to printer w/o using Print Manager

4. HOW TO: Print to default printer instead of LPT1 or to screen

5. Print directly to the printer

6. print directly to win2k printer share?

7. Printing Directly to Printer

8. Printing directly to a printer

9. How to print directly to printer?

10. Printing directly to a printer from VB.

11. How to print directly to the printer?

12. print a form directly to the printer

 

 
Powered by phpBB® Forum Software