Microsoft KB Archive/30048

= BASIC Support for LaserWriters and ImageWriters I, II, LQ =

Article ID: 30048

Article Last Modified on 11/21/2006



This article was previously published under Q30048



SUMMARY
Below is a list of printers for the Apple Macintosh and how they can or cannot be used with the Microsoft BASIC Interpreter Version 3.00, the Microsoft BASIC Compiler Version 1.00, and the Microsoft QuickBASIC Compiler Version 1.00.



MORE INFORMATION
The following is a description of the Apple ImageWriter I and ImageWriter II printers and their features:


 * 1) Are dot-matrix printers
 * 2) Can print ASCII bytes in character mode and also bit-graphic images of characters in graphics mode
 * 3) ImageWriter file in the System Folder is the driver
 * 4) Supported by BASIC

The following is a description of the Apple ImageWriter LQ Printer and its features:

 Is a high-resolution dot-matrix printer Requires special fonts installed in the Macintosh System file Prints bit-graphic images of characters BASIC does not support the following statements on the ImageWriter LQ:

LPRINT

LLIST

LCOPY

The &quot;LPT1:DIRECT&quot; device

 BASIC supports the following features on the ImageWriter LQ:

OPEN &quot;LPT1:&quot;

OPEN &quot;LPT1:PROMPT&quot;

The PRINT option from the File menu to print a program listing



The following is a description of the Apple LaserWriter and the Apple LaserWriter+ and their features:

 Use PostScript (from Adobe, Inc.) page-description language to print</li> Use LaserWriter and Laser Prep driver files in the System Folder</li> BASIC does not support the following statements on the LaserWriter:

LPRINT

LLIST

LCOPY

The &quot;LPT1:DIRECT&quot; device

</li> BASIC supports the following features on the LaserWriter:

OPEN &quot;LPT1:&quot;

OPEN &quot;LPT1:PROMPT&quot;

The PRINT option from the File menu to print a program listing

</li> The BASIC Interpreter Version 3.00 supports the Apple LaserWriter only with Version 4.10 LaserWriter and Laser Prep files on the Macintosh System Version 3.2.

The &quot;Device I/O&quot; error, the &quot;Out of Heap Space&quot; error, and system hanging can occur when printing from BASIC Version 3.00 with later versions of LaserWriter, Laser Prep, and Macintosh System files.</li> Programs compiled with the BASIC Compiler Version 1.00 should work correctly with any version of the LaserWriter, Laser Prep, and Macintosh System files.</li> QuickBASIC Compiler Version 1.00 programs require a Macintosh System no earlier than Version 4.1 and should work with the versions of the Laserwriter and Laser Prep associated with this System.</li></ol>

The following is a description of the Apple LaserWriter NT and its features:


 * 1) Contains a 68000 chip on board
 * 2) Uses PostScript (from Adobe, Inc.) page-description language to print
 * 3) Not fully tested with BASIC, but results should be the same as for the normal LaserWriter (please refer to the LaserWriter description above)

The following is a description of the Apple LaserWriter NTX and its features:


 * 1) Contains a 68020 chip on board
 * 2) Uses PostScript (from Adobe, Inc.) page-description language to print
 * 3) Not fully tested with BASIC, but results should be the same as for the normal LaserWriter (please refer to the LaserWriter description above)

The following is a description of the Apple LaserWriter SE and its features:


 * 1) Directly connects to the Macintosh and cannot be used on the AppleTalk Network
 * 2) Uses Macintosh QuickDraw CALLs instead of PostScript language to print
 * 3) Requires a special printer driver
 * 4) Not tested with BASIC, and probably will not work correctly with BASIC

The following is a description of the General Computer Personal Laser Printer and its features:


 * 1) Connects directly to the Macintosh
 * 2) Not tested with BASIC

To confirm the version number of the ImageWriter or LaserWriter file, do the following:


 * 1) Select (single click) the file.
 * 2) Choose Get Info from the File menu (or press COMMAND-I). The Get Info box usually contains version-number information.

Please note that you can use the WINDOW OUTPUT #n statement to redirect screen graphics and fonts to the above devices named &quot;LPT1:&quot; and &quot;LPT1:PROMPT&quot; after opening them as #n with the OPEN statement. (The character-mode device name &quot;LPT1:DIRECT&quot; does not support WINDOW OUTPUT #n.)

Additional query words: BasicCom MQuickB

Keywords: KB30048

-

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

© Microsoft Corporation. All rights reserved.