Regardless of the actual printer type, the WIN-PRINT driver responds to the control characters in the following table. All other characters will be printed (if possible).
Character
Function
CHR$(10)
Move the print location down one line
CHR$(12)
Move the print location to the top of the next page
CHR$(13)
Move the print location to column one
The default margins are 1.27 cm (1/2 inch). Characters printed past the right margin are discarded. When the line advances past the bottom margin, the print location moves to the top of the next page.
Change the margins using CONTROL registers 104 to 107 as shown in the example below. Margins are specified in 1/100’s mm. In other words, a value of 100 specifies 1 mm. To specify values in inches, take the desired value in inches and multiply by 2540. Some printers have minimum margins. Attempting to set the margins smaller than allowed by the printer results in an error.