Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Font and Field Size
Message
From
10/01/2001 11:28:21
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00461331
Message ID:
00461673
Views:
11
Thanks, Martín and Vlad.

Martín :
I can't see the file ("GenRepoX"), it gives a error if i trie to download.

Vlad:
Thanks, for the tip, but at this point, but i need the EXACT formula to calculate the size of the Field in "Fox Report".

See the example:

Font | Form | Report | My Formula
---------------+--------+------------+-----------------
Arial 4 | 8 | 625.000 | 625.000 |
9 | 17 | 1562.500 | 1562.500 |
18 | 29 | 2916.667 | 2916.667 |
24 | 38 | 3854.167 | 3750.000 | ????

The Values from de "FORM" and "REPORT" was given by de VisualFoxPro
I get a formula that gives the correct result for ALLMOST sizes and Fonts

---------------------------------------------------------------------------
Function GetTextHeight
Parameter tcFontName, tnFontSize
#define g_RptConverteFACTOR 104.166666666667

Local lnSize
lnSize = FONTMETRIC(1, tcFontName, tnFontSize)
lnSize = Round(lnSize * g_RptConverteFACTOR, 3)
Return lnSize
---------------------------------------------------------------------------

Nuno Brito
Nuno Brito
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform