COMPUTE_LPGRIDSETTING
|
Syntax: |
COMPUTE_LPGRIDSETTING |
|
Meaning: |
This instruction has an effect only with ENABLE LPGDI. A grid in rows and columns is created for a
print page. With the instruction LPGRIDCURSOR the print cursor can be positioned within this grid. The height of the grid rows is defined by the
instruction LPFONTHEIGHT. If the line space has
not been specified yet, the standard height (1/60 of the page height) is used. The space between two grid columns is
specified in a way that one grid position is exactly the average width of a
letter of the current font. The width of this font is defined with the
instruction LPFONTWIDTH. If the width of the font
has not been specified yet, the standard font width (1/80 of the page width)
applies. If COMPUTE_LPGRIDSETTING is not executed,
there may be distortions in the printout especially with the Fixed Font since
the font width might in this case not fit to the grid. |
|
Sample: |
/* Print with Fixed Font 132 characters per line LPFONTWIDTH = PAGEWIDTH(1) / 132 COMPUTE_LPGRIDSETTING |
|
See also: |
|