Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all
i have a crystal report text field that i want set length to 10 character ..
it is used for show name+family in report

i want when this field cant show all character of name+family , font size reduce for 1 unit , until field can show name+family compelete ...

C#
for example :
this field can show only 10 character
and 
in database exists one filed that have 15 character length
now
this filed should reduce font size until can show all 15 character of field


how do i this ?

please help me

thanks a lot
Posted

1 solution

Yeah you can very well do this using the formula in the font section as-


SQL
Right click on the field and select format field
click on the Font tab
click onthe formula box next to the Size option
insert the formula as:
If {table.field} >10 then 8 else 10



Hope it Helps.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900