How to Use WordBasic Print Command to Send Output to PrinterLast reviewed: July 30, 1997Article ID: Q93759 |
The information in this article applies to:
SUMMARYAlthough the WordBasic Print command is usually used to write output to the status bar, you can also use this command to write output to the printer.
MORE INFORMATIONThe sample macro below sends the text string "This is a test" to the printer on LPT1.
Note: In this macro, no form feed follows the text sent to the printer. To actually print the text, you must also send a line feed. This happens automatically if you send another print job to the printer. Sub MAINOpen "lpt1.dos" For Output As #1 Print #1, "This is a test" End Sub WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, pages 263, 269 "Word for windows 2.0 Macros," Russell Borland, Microsoft Press, 1992, page 363 Kbcategory: kbusage kbmacro kbhowto KBSubcategory: |
Additional query words: winword2 1.0 1.10 1.10a 2.0 2.0a 2.0a-CD
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |