Qbasicnews.com

Full Version: Printing to LPT3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The Lprint command only prints to LPT1 as far as I can tell. I've tried: OPEN "LPT3:" FOR OUTPUT AS #1. This does not seem to work. Is it possible using QBASIC to print to LPT3? If not, is there something that can be done outside of QBASIC to fool it into printing to LPT3? Thanks for any ideas!
try this:

Code:
OPEN "output.txt" FOR OUTPUT AS #1
  DO
    LINE INPUT "ENTER TEXT TO PRINT (blank exits): ", t$
    IF t$ <> "" THEN PRINT #1, t$
  LOOP UNTIL t$ = ""
CLOSE #1
SHELL "copy output.txt > LPT3"
KILL "output.txt"

*peace*

Meg.
If what Meg suggests works trmptr64's idea should work also.
If none of them works Windows LPT3 driver is not correctly configured as a DOS printer