forked from Galleondragon/qb64
-
Notifications
You must be signed in to change notification settings - Fork 24
LPRINT
Cory Smith edited this page Sep 1, 2022
·
4 revisions
The LPRINT statement sends string text or numerical values to a parallel port (LPT1) printer in QBasic or a USB printer in QB64.
LPRINT [expression] [{;|,}]
- expression is one or more text or numerical expressions separated by a semi-colon (;) or comma (,).
- Syntax is the same as PRINT, but cannot use a port number.
- Program does not have to OPEN the LPT1: parallel port.
- Assumes a 80 character wide page. Keywords currently not supported by QB64
- LPRINT USING can print formatted text data to a page identically to how PRINT USING formats a program screen.
- COLORed text and images can be printed using _PRINTIMAGE which stretches them to fit the default printer's paper size.
- LPRINT will only print to the default USB or LPT printer set up in Windows. Keywords currently not supported
- To print in Linux, see Connecting to printer via TCP/IP.
- Note: Printer escape codes starting with CHR$(27) will not work with LPRINT and may produce text printing errors.
- LPRINT USING
- _PRINTIMAGE (prints color images to page size)
- PRINT, PRINT USING
- Windows Printer Settings