View Categories

Underlined font

< 1 min read

Conditional formatting allows you to apply an underlined font to text components. The following image shows the report page.

For example, you can create underlined text for components that contain Nancy in the FirstName column. Select the text component with the {Employees.LastName} expression in DataBand and invoke the condition editor. Next, we need to set the conditions. Select the Employees.FirstName data column as the first value and the Nancy character as the second value. Also, the set operation compares unequal values. Change formatting parameters. In this case, set the font style to underlined. The following image shows the Condition Editor dialog box.

After making changes to the report template, the reporting engine performs conditional formatting of the text components according to the specified parameters. In this case, the underlined font is applied to the content of the text component that matches the specified criteria. The following image shows a page of a report rendered with conditional formatting.

As shown in the image above, the rows of text components in the FirstName column that start with Nancy are underlined.