Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/37097

From BetaArchive Wiki

Where to Get COBOL Notes for Printing Control Codes to Printer

PSS ID Number: Q37097 Article last modified on 04-25-1991

1.07 1.10 1.12 2.00 2.10 2.20 3.00 3.00a 4.00 | 3.00 3.00a 4.00 MS-DOS | OS/2

Summary: Printer control codes can be sent to printers from COBOL versions 1.07, 1.10, 1.12, 2.00, 2.10, 2.20, 3.00, 3.00a, and 4.00. Note: Different printers usually have entirely different control codes. Please refer to the manual for your particular printer to determine the control codes necessary for different effects. How you output printer-control codes depends on whether you have COBOL version 1.x, 2.x, 3.x, or 4.00. Microsoft has developed an application note titled “COBOL 1.x-3.00 Printer Codes” that shows how to send control codes to an Epson-compatible printer or a Hewlett-Packard (HP) LaserJet laser printer. You can obtain a copy of this application note from Microsoft Product Support Services.

More Information: A sample printing program, PRINTESC.CBL, is included with Microsoft COBOL Professional Development System version 4.00. It can be found in the DEMO subdirectory of your COBOL directory. If you did not install the sample programs on your initial setup, you can use SETUP.EXE to select the “All sample programs” component, and then repeat the installation process with only the new component selected. This application note is also available as seven separate articles. You can query for these articles with the following keywords: 1. Two-character AND 1.12 AND COBOL AND printer AND control AND codes 2. Three-character AND 1.12 AND COBOL AND printer AND control AND codes 3. Two-character AND 2.20 AND COBOL AND printer AND control AND codes 4. Three-character AND 2.20 AND COBOL AND printer AND control AND codes 5. Two-character AND 3.00 AND 4.00 AND COBOL AND printer AND control AND codes 6. Three-character AND 3.00 AND 4.00 AND COBOL AND printer AND control AND codes 7. LaserJet AND printer AND 3.00 AND 4.00 AND COBOL

Copyright Microsoft Corporation 1991.