Symptom
How to customize the font of the field in a formula using Crystal Reports?
Environment
- Crystal Reports 2008
- Crystal Reports 2011
Resolution
- Create a report based on Xtreme Sample Database.
- Select the table Customer and Add a new Formula as Test.
- Add the fields to be displayed. For e.g.
{Customer.Country} + ’ - ‘ + {Customer.Region} - This will display the Country – Region in the report.
- To customize the Font of Region field alone add the code in the formula Test as follows:
{Customer.Country} + ’ - ‘ + “ <b> <font color = ‘Red’ >” + {Customer.Region} + “ </b> </font> - Drag the formula to the report. Right Click on the field. Select Paragraph tab.
- Under Text Interpretation drop down HTML Text.
- This will display Region in Bold and Red color.
Keywords
Customize Font, Bold format. , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
Crystal Reports 2008 V1 ; SAP Crystal Reports 2011