Symptom
- How to dynamically change the font color of a field?
- How to customize the font color of the field in a formula using Crystal Reports?
Environment
- SAP Crystal Reports 2016
- SAP Crystal Reports 2020
- SAP Crystal Reports 2025
Resolution
- To change the font color of a field dynamically in Crystal Reports, create a formula, and use HTML tags.
-
- In Crystal Reports, create a report based on any data source.
- To customize the Font color for a database field, create a formula using HTML tags, like:
<Database Field> + ’ - ‘ + “ <b> <font color = ‘Red’ >” + <Second Database Field> + “ </b> </font> - Add the formula to the report.
- Right click on the formula field, and select "Format Field"
- In the Format Editor, under the tab Paragraph, for the option "Text Interpretation", select: "HTML Text"
- Click "OK"
- In Crystal Reports, create a report based on any data source.
Keywords
Customize Font, Bold format. , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To
Product
SAP Crystal Reports 2016 ; SAP Crystal Reports 2020 ; SAP Crystal Reports 2025
SAP Knowledge Base Article - Public