Article ID: 20521
Article Last Modified on 8/16/2005
LQ and ImageWriter and Macintosh and Support and LaserWriter
OPEN "LPT1:" FOR OUTPUT AS #1 ' Opens printer as #1. WINDOW OUTPUT #1 ' Redirects output to device #1. REM Perform any window output here (TEXTFONT, TEXTSIZE, PRINT, REM CIRCLE, PICTURE, ROM Routines, etc.) to redirect to the printer. REM Exceptions: The BACKPAT ROM routine (and PUT in BASIC Interpreter REM 2.00) is not redirected to the printer. REM The image must lie within coordinates (1,1)-(638,750) REM on the Standard ImageWriter printer. TEXTFONT 4 : TEXTSIZE 9 ' Changes to Monaco font, size 9. LOCATE 3,1 PRINT "This is in monaco font." LINE (1,20)-(55,34),,b ' Draws box. CLOSE #1 ' The output won't print until you CLOSE #1.Using this technique, you can send to the printer a much larger area than you can see on the screen. The maximum window that you can see on the standard Macintosh screen must lie within screen coordinates (1,21)-(510,338). By using the above program, you can print to window coordinates (1,1)-(638,750) on the ImageWriter (or LaserWriter) printer, corresponding to a full 8.5-inch x 11-inch printed page. An even larger area can be printed to the wide (15-inch) ImageWriter printer.
Additional query words: BasicCom MQuickB
Keywords: KB20521