RPV Reports / Home
 
Search in RpvSoftware.com
Go!

What Rpv is

Rpv Reports 6

Downloads

Support

Buy now!

Contact us

 

TextWidth and TextHeight functions. RpvCorporate.ocx control


Use these functions to know the width or the height (in twips) of a text.

Syntax:

TextWidth(InputStr, FontName, FontSize, FontBold)
TextHeight(InputStr, FontName, FontSize, FontBold)

Example:

Width_in_twips = Rpv1.TextWidth("My text", "arial", 12, 0)
Height_in_twips = Rpv1.TextHeight("My text", "arial", 12, 0)

For the "FontBold" parameter, 0 means normal and 1 means bold.

It is remmarkable that TextWidth and TextHeight measure the text based on the printer. For that reason, you could note some differences between what you see and what you get printed. If printer is not installed or it is not reachable by the control, the measurement will be based on the screen. However, differences may appear when zooming in and zooming out.

Home
What Rpv is
Rpv Reports 2024

Products
Rpv Reports 2024
Personalized edition

More...
Downloads
Support
Rpv Reports Online help
Rpv Visual Editor online help
Examples
/temp section
Videos




Copyright (c) 2001-2024 - Rpv Software. All rights reserved.