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).
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.
CONTROL 10,104;1*2540 ! Left margin: 1 inch
CONTROL 10,105;2*2540 ! Top margin: 2 inches
CONTROL 10,106;1/2*2540 ! Right margin: 1/2 inch
CONTROL 10,107;4000 ! Bottom margin: 4 cm
|