WPCubed Product Support

How to calculate ColWidth in millimeter?

Hi

to set ColWidth of a table i use

tbl.cols[0].aSet(WPAT_COLWIDTH, 600);

i want to get a ColWidth with 2 cm width, how to calculate cm into the WPAT_COLWIDTH value?

Ciao
Stefan

#1 ♥ 0
4.4k Views 2 users read 1 min
support

The formula is

cm / 2.54 * 1440

or use the function WPCentimeterToTwips defined in unit WPRTEPlatform.

#2 ♥ 0

Thank you, i will use WPCentimeterToTwips

Ciao
Stefan

#3 ♥ 0
This category is archived. No new posts are possible.