Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

auto text size

Status
Not open for further replies.

Fadius

IS-IT--Management
Jul 25, 2001
139
US
I am using Crystal Xi. Is there a way to format text for a field so it auto shrinks to fit a certain area? On the form I have, has to be used, I only have a certain amount of space and the field needs to fit into it.
 
There is no auto-sizing feature, but you can make the font size conditional based on the length of the field, e.g.:

if len({table.field}) < 10 then
10 else
if len({table.field}) < 15 then
8 else
if len({table.field}) < 20 then
6 else
4

You can also use the "can grow" feature if allowing the field to wrap helps. Or you could adjust the character spacing conditionally.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top