Star Micronics Rainbow NX-1000C User Manual page 49

Table of Contents

Advertisement

I
I
I
I
I
I
I
I
I
I
I
I
I
J
The solution to this problem is to set a bottom margin. You can also
set a top margin, but it is easier to combine both margins into one. The
recommended page formatting procedure is:
1. Scroll the paper to the position where you want printing to start at the
top of the page. (If printer power is on, use the Paper Feed switch.)
2. Tum power on, or give a page-length setting command such as < 27 >
<
67 >
<
0 >
<
n >. Either of these actions makes the current position
the top-of-page position. If your paper length is different from the DIP
switch 3 setting, a page-length command is mandatory.
3.
Set the line spacing. There are a variety of commands to choose from.
The command used in the sample program below is
<
27 >
<
51 >
< n >, which sets the line spacing to n/216 of an inch.
4.
Set the total number of lines of top and bottom margin as n in the
command < 27 > < 78 >
< n
> .
5.
Set the left margin with the < 27 > < 108 > < n > command and the
right margin with the <27> <81>
<n>
command.
The left and right margins are set in terms of the current print pitch
and do not move if you change the print pitch later. The printer can center
text between the margins; the centering command is < 27 > < 97 > < 1 >
or
<
27> < 97 > < 49>. The demonstration program given next sets the
left margin in column 15 and the right margin in column 65 and centers a
title between them.
The program is interactive: it lets you decide the number of lines per
page and the top and bottom margins, and calculates the line spacing for
you. If necessary, it adjusts the line spacing to be not less than 22/216 of
an inch (to keep successive lines from overlapping) and not more than 255/216
of an inch (the maximum allowed by the command used). The program also
lets you decide how long a demonstration to print and reminds you to scroll
the paper to the top-of-page position.
This program assumes that the page length is 11 inches. If your forms
have a different length, change the value of the PL% variable in line 120.
The line-feed code [CHR$(lO)] in line 340 is a spacer between the two
title lines. Lines 370 to 400 print text. The text may appear somewhat random
because it is generated by random numbers. Line 410 sends the form feed
command, causing the printer to feed out the last page and end at the top
of the next page.
J
100 REM
PAGE FORMATTING DEMONSTRATION
110
E$~CHR$(27)
:REM ESCAPE CODE
120 PL%=ll
:REM PAGE LENGTH
130 INPUT "HOW MANY LINES PER PAGE"; PP
140 INPUT "TOP
+
BOTTOM MARGIN (INCHES)"; TB
39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents