Syntax
| Printer.CalcText = strText
|
---|---|
Description
| Calculates the size of a string, in twips, and returns results in TextWid, TextHei, X1, Y1, X2, and Y1.
You can use this property to determine whether some text will fit on the current page. The text is measured from the current cursor position (CurrentX, CurrentY) and the measurement takes into account wrapping, indenting, and line spacing.
If you only need the width and height of the text, and not the rectangle on the page, you may use the TextWidth and TextHeight properties instead.
To draw shaded paragraphs, see also the TextBox method.
|
See Also
| |
Example
|