Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine field width in foxels(?)
Message
From
22/05/2002 09:21:19
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00659569
Message ID:
00659865
Views:
28
Hi!

It is not possible in run-time. You can read the content of the FRX file (it is a plain DBF table) and take the field's width from there, but this is not a simple approach.

>I have a single line report field for a person's name. I can determine the data's proportional TXTWIDTH() based on the font used before printing, but I would like to detect if it will overflow the report field beforehand. In case of an overflow, I would want to abbreviate the name (i.e., make the first name a first initial only). I cannot find a function to read the width of a report field.
>
>Thanks,
>Paul
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform