Posts tagged ‘Condition base format field’

Apply Formatting in formula in crystal report

If you want to apply condition base formatting in crystal report, you can use below method for that.

if (IsNumeric({Student.Marks})) Then
if({Student.Marks} >= 40) then
crbold   //font bold – PASS
crregular //font regular – FAIL
crregular //if non-numeric/empty/NULL make the font regular – FAIL
To change the font style dynamically according to value, use this expression in your expression

=Format(First(Fields!Field_value.Value, “ABCDEFG”),”BOLD”)