Click here to Skip to main content
12,450,089 members (42,333 online)
Rate this:
 
Please Sign up or sign in to vote.
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 ...

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 20-Jan-13 19:23pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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


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.
  Permalink  
v2

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 21 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100