SETTING
THE
TOP
MARGIN
The
top
margin
can
be specified
anywhere
within a page, whether
the
page has been programmatically set
or
defaulted
The
following sequence is used
to
set
the
top
margin:
Set
top
margin
Ec&I#E
# =
Number
of
lines
to
skip
The
value field
(#)
specifies
the
number
of
lines
to
skip
at
the top
of
the
page.
The
top
margin
may
range
from
zero
to
the
page
length
(the
default
is
one-half inch
from
the
top
of
the
page).
Setting a
top
margin causes
the
text length
to
be
defaulted
(page
length -
top
margin - 1/2 inch
bottom
margin =
default
text
length). NOTE: Avoid using a value field
of
zero or one because
the
top two lines
of
the
page (approximately) lie in
the
unprintable
region. Attempting to print on these two lines will result in
data
loss.
The
top
margin escape sequence
can
be placed anywhere within
the
page.
It
should be noted, however,
that
if
the
cursor
is
below
the
newly-specified
top
margin
at
the
time it
is
specified,
the
cursor will
not
move
to
the
top
margin unless a Ec&a8R sequence
(vertical
cursor
move
to
line 0)
is
sent. Otherwise, printing will
begin
at
the
current
cursor
position
on
the
current
page (and
not
at
the
top
margin until
the
following page).
If
the
vertical motion index
is
set
to
zero
or
if
a
top
margin
beyond
the
current
page length is selected,
the
command
will be
ignored.
The
top
margin uses
the
current
vertical line spacing when
determining
the
top
margin position. Once
the
top
margin
is
set,
successive changes in
the
vertical line spacing
do
not
affect
the
top
margin. NOTE:
The
line spacing
can
be changed using the
Vertical Line Spacing escape sequences explained later in this
chapter.
2-9