Qbasicnews.com

Full Version: Auto Line Feed to Printer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone tell me how I get the Line Feed to work on the Printer so that it will eject the Paper after the job is printed
On most printers, if they're attached to LPT1,

LPRINT CHR$(12);

should work. Otherwise, it's

OPEN "LPT1n:" AS #1
PRINT#1, CHR$(12);
CLOSE #1

where n is the number of the LPT port that you're printer's attached to.
I thought CHR$(10) was linefeed. At any rate, it'll only work if the DOS emulation on your printer works.
ejecting the page from the printer (at least, I thought that's what he said), I thought he really meant a formfeed. And I guess I assumed he was able to print with DOS programs (e.g., those written with QB) because he was asking about it in a QB forum and the implication was that he was already getting *something* output to the printer.