Star Micronics NB-15 Printer User Manual


 
59
,____ iv------- -------- -
1 LINE NUMBER 1.
0,
LINE NUMBER 2.
I
01
I
OI
I
I
-- ------ - ---- ------_-__
I LINE NUMBER 3.
0 ; LINE NUMBER 4.
OI
I
The form feed (CHR$(12)) in line 50 caused the printer to
move to the top of a new page before printing the last two lines.
n Changing the page length
You may have some computer forms that you wish to use with
this printer that are not 11 inches high. That’s no problem,
because you can tell your printer how high the forms are that
you are using. There are two commands for doing this, shown in
this table.
Table 6-3
Form length control
Function
Control code
Advance paper to top of next page
CHR$(12)
Set the page length to n lines
(ESC)“C”CHR$(n)
Set the page length to n inches (ESC)“C”CHR$(O)CHR$(n)
Let’s set up a 7 inch high form length, which is typical of
many computer checks. The following program will do it.
10 ‘Demo of variable form lengths
20 LPRINT CHR$(27);“C”;CHR$(O):CHR$(7);
30 LPRINT “PAY TO THE ORDER OF :
40 LPRINT CHR$(12);
50 LPRINT “PAY TO THE ORDER OF :
60 END