Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using TXTWIDTH() in Visual Foxpro 5.0 Reports
Message
De
04/03/1997 12:30:15
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nouvelle-Écosse, Canada
 
 
À
03/03/1997 12:16:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00022682
Message ID:
00022819
Vues:
43
>>I need a way of determining the width of text in a VFP 5.0 report. I'm generating a report FRX;FRT file on the fly and I have to determine the maximum amount of text I can put into a text box in the report. I'm currently using TXTWIDTH() and passing it the string to be printed as well as the Font information of the textbox being created. This method works OK in text boxes in forms but doesn't work when making reports.
>>
>>HELP !
>>
>>Thanks in advance ..
>
>As far as I know VFP Report Writer is not object-oriented, i.e. report controls don't have 'Width' property and TXTWIDTH() cannot be used here.

True, However, the 'text box' control does have a physical width in which the text will be placed and wrapped around where appropriate. Foxpro obviously uses some algorithm to determine the size of the text - it has to be based on the Font being used - and this is the algorithm I need.

Thanks in advance ..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform