★ APPLICATIONS ★ PAO/PRESSE ★ PRINTER COMMANDS (AMSTRAD COMPUTER USER) ★![]() |
Printer Commands (Amstrad Computer User) | Applications Pao/presse |
How often have you written a programme foryour printer to display data, for say a spreadsheet, and wished there was some easier method of telling the printer what to do, without all those messy CHR$(27); etc, commands having to be laboriously typed in? Do you know how to make your printer print a continuous unbroken line? The small listing below shows how to do all this, it is however written for EPSON compatible printers, but for other printers your hand-book should show what will need to be amended. Line 10 - Defines string variables to get rid of as many $ signs as possible. The letter “0” is reserved exclusively for printer command variables. Line 30 - Variable: 0 becomes a Printer TAB symbol. OA and OB are symbols for Printer templates. Line 40 - Variable OX and OY are Printer symbols for: Underline ON and Underline OFF. Line 110-Sets Printer to Condensed print. This enables me to use 127 columns on normal 80 column paper. Line 120 - Sets up Printer TABS Line 600 - Is a small sub-routine to print lines. It does this by printing 127 underlined spaces. The value of E was made 127 in line 140. Line 210 - Prints a double ruled line.
|