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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I conditionally change the font size?

Status
Not open for further replies.

ajayz90

Programmer
Nov 12, 2002
65
US
I want to have a bigger font size if the name is less than 30 charcahters and a smaller font size if the name is more than 30 charachters.The name of the name field is fname how can i do this in CR 9.


Thanks

Ajay
 
From the design window, right click the object in question and select format object. Go to the font tab, and hit the X-2 button to the right of the font button, and enter a formula:

if length({YourField})> 30 then 8 else 10

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
dgilsdorf@trianglepartners.com
 
if Length ({fieldname}) > 30 then 30 else 10


put this is in the formula box (x-2) from the Format Field -> Font Screen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top