Partager via


How to Change the Printed Values of Boolean Variables

In a client report definition (RDLC) report layout, when a Boolean value appears on a report, the value is printed as "True" or "False" in the target language.

In some cases, you may want to change the printed value of a Boolean variable or field in an RDLC report layout. You can change the value to "Yes" or "No" instead of "True" or "False."

To change the printed value of a Boolean field

  1. In the development environment, on the Tools menu, choose Object Designer.

  2. In Object Designer, choose Report, select the report for which you want to change the printed values of Boolean variables or fields, and then choose the Design button.

  3. In Report Dataset Designer, find the Column for the Boolean variable or field that you want to change.

  4. In the Data Source field, change the <BooleanVariable> to FORMAT(<BooleanVariable>).

  5. On the File menu, choose Save.

  6. In the Save window, select the Compiled check box, and then choose the OK button.

See Also

Designing Reports