Star Micronics NX-15 Printer User Manual


 
I
64
When you run this program it will print 150 lines right down
the page and across the perforations. When it’s done line 110
sends a form feed to advance to the top of the next page.
Now add the following lines to your program. (Don’t forget
the semicolons or you won’t get quite the same results that we
did.)
20 Leave 6 blank 1ines at the bottom of page
30 LPRINT CHR$(27);“N”;CHR$(6);
40 ‘ Start top of page at 1ine
6
50 LPRINTCHR$(27); “r” ;CHR$(6);
100 LPRINTCHR$(27);“O”; clear top and bottom
marg
ins
Now when you run the program, your printer skip the first six
lines and the last six lines on each page. Always send a form
feed after setting the top margin, or it will not work on the first
page printed. That’s because the top margin only takes effect
after a form feed.
Line 50 sets the top margin, line 30 sets the bottom margin,
and line 100 clears both margins when we are done.