|

the software that grows
with you
| |
|
V32PGetTextWidth()
|
| Returns an array of 255 elements
corresponding each character of ASCII table containing average character
width of each character used for printing, on the basis of supplied
printer, orientation and font info. |
|
Syntax
|
| V32PGetTextWidth( cnPrinter,
nOrientation, aFont ) |
|
Arguments
|
| Param |
Default |
Description |
| cnPrinter |
0 |
Either the name of the printer or its ordinal position
in the Windows registry. Defaults to 0 = Default Printer. |
| nOrientation |
1 |
Portrait or Landscape. Defaults to 1 = Portrait. |
| aFont |
Courier New |
The structure of aFont must be { cFont,
nPointSize, nAngle, lBold, lItalic, lUnderline, lStrikeOut, nCharSet
} DEFAULTS to { 'Courier New', 12, 0, .f.,.f.,.f.,.f.,
DEFAULT_CHARSET } |
|
|
Returns
|
| NIL |
|
Description
|
| This function lets you calculate the
width of a given string so that you could place your text objects on the
paper precisely at a position.
To use it effectively, you need to create a database wherein the values
returned through this function with various font parameters are stored in
advance of the real printing jobs. If you issue this command interactively
with other VPE commands, the printing will tend to too slow. But how best
do you use it depends on your requirements.
|
|
Usage
|
| |
|
Tips
|
|
|