How to: Change the Printed Values of Boolean Variables
In a Classic client report layout, when a Boolean value appears on a report, the value is printed as "yes" or "no" in the target language. 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 in an RDLC report layout to "yes" or "no" instead of "true" or "false." For example, you may want RDLC report layouts to use the same wording as the reports that you designed in a previous version of Microsoft Dynamics NAV. You may also have Classic and RDLC report layouts and require the same wording in both layouts.
Before you begin this procedure, you must create a layout suggestion for the report. For more information, see How to: Create a Layout Suggestion.
To change the printed value of a Boolean variable
In the Classic client, on the Tools menu, click Object Designer.
In Object Designer, click Report, select the report for which you want to change the printed values of Boolean variables, and then click Design.
On the View menu, click Sections.
Right-click the text box that displays a Boolean variable, and then click Properties.
In the Properties window, in the SourceExpr field, change the BooleanVariable to FORMAT(BooleanVariable).
In the Properties window, in the Caption field, enter the value for the caption of the variable.
On the File menu, click Save.
In the Save window, select the Compiled check box, and then click OK.