Microsoft KB Archive/34352

= MAC QB 1.00 README: How to Send Screen Graphics to Printer =

Article ID: 34352

Article Last Modified on 1/9/2003

-

APPLIES TO


 * Microsoft QuickBasic Compiler for Macintosh 1.0

-



This article was previously published under Q34352



SUMMARY
This article describes how to send screen graphics to an Apple ImageWriter or LaserWriter printer. This information is taken from the README file on the release disk for Microsoft QuickBasic Version 1.00 for the Apple Macintosh. (The exception is that &quot;Utility SUBs&quot; in the &quot;Screen Dumps&quot; section of the original README is incorrect; the text should actually refer to the &quot;Utility Subprograms&quot; file. This correction has been added below.)



Additional Information on Printing Graphics
Printing Graphics is the same as printing to the screen. Use WINDOW OUTPUT #n after opening the printer, and all graphic calls (except BACKPAT) will go to the printer. LINE (0,0)-(551,729),,b will outline the drawable area on a LaserWriter page when printed at 100%.

If you want to print the window contents, record a picture as you draw the screen, then replay the picture to the printer. Follow this general outline: PICTURE ON :SHOWPEN 'make drawing visible '      '       draw the window contents '      (PICTURE and PUT work here, too!) '      PICTURE OFF :HIDEPEN windowPic$=PICTURE$ '      OPEN &quot;lpt1:prompt&quot; FOR OUTPUT AS #1 WINDOW OUTPUT #1 PICTURE ,windowPic$ CLOSE #1 You can also use the resulting picture to refresh the screen. Pictures are usually more compact than GET arrays and preserve color in addition to printing faster on a LaserWriter.

Screen Dumps
Use the &quot;PrintScreen&quot; subprogram in the &quot;Utilities Subprograms&quot; file to send a copy of your screen to a printer. Unlike LCOPY, this works for color screens and LaserWriters. &quot;PrintScreen&quot;, along with a &quot;PrintWindow&quot; subprogram, is in the &quot;Utility Subprograms&quot; file in the &quot;QB Demos&quot; folder on the Examples disk.

Examples
&quot;Calendar&quot; on the Examples disk contains sample graphics printing.

Additional query words: MQuickB readme docerr

Keywords: KB34352

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.