Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to LPT2

Status
Not open for further replies.

briano

MIS
Jul 20, 2001
2
US
I still use money basic for my checkbook but now I have my printer on LPT2 because of a conflict with my scanner. How do I make Qbasic print to LPT2 instead of the default LTP1.
Thanks in Advance,
BrianO
 
You won't use lprint anymore. To need to open the printer object as a file. Personally, I never use 'Lprint'.

printer = freefile
open "lpt2:" for output as #printer
print #printer, "This is printed on lpt2:"
print #printer, chr$(12);
close #printer

You can have a max of 3 printers this way.

David Paulson


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top