Posts tagged ‘apply font style in crystal report’

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
else
crregular //font regular – FAIL
else
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”)