The "Text" object
This object is undoubtedly the most powerful and flexible object in FastReport. Basically, it provides you with a framed rectangle of multi-line text. You can set the frame type, color and width; as well as the font attributes, text alignment and font rotation (horizontal or vertical). To set the object's attributes, use the "Text" and "Rectangle" toolbars:


The contents of a text object basically consist of a memo type object, which may include: text, variables, data fields, or any combination of these. The font formatting will be applied to all text contained within the text object.
Some examples of using text objects:
Length, ñì: [Length]
- This shows some fixed text (Length, CM) followed by a variable ([Length])Length, ñì: [Table1."Length_cm"]
- This shows some fixed text (Length, CM) followed by a data field ([Table1."Length_cm"])Length, ñì: [[Length inch] * 2.5
4] - This shows some fixed text (Length, CM) followed by a variable used with a formula, ( [[variable] * value]). It is important to note the additional set of square brackets when using formulas with variables.Length, ñì: [Table1."Length_in" * 2.54]
- This shows some fixed text (Length, CM) followed by a data field used in a formula ([datafield * value]). Notice the single set of square brackets is required for data fields and formulas.The fastest way to edit a text object is to select the desired rectangle (by clicking on it) and then double click on it in the report editor. This will bring up the memo editor dialog:

Here is a short description of the toolbar buttons:
Inserts an expression;
Inserts a data field;
clipboard operations;
turns on/off word wrapping;
turns on/off the script editor;
Cancel button;
OK button.
From the editor you may type in text, insert variables, data fields or expressions. Clicking on the "Data field" or "Expression" buttons in the memo editor dialog will display the currently available data fields or variables. You may also use the following keys:
Insert
“Variable” button - brings up the variable dialog.Ctrl+Enter “OK” button - accepts and closes the dialog.
Esc “Cancel” button - closes and cancels editing.
Each text object can also have its own formatting style. You can edit the format by clicking on the "DisplayFormat" property of the text object in the Object Inspector. Formatting options include: no formatting, displaying as a numeric value, date, time or boolean formatting.

For each formatting category, you can choose one of several predefined formatting options, or you may perform custom formatting (for example, #,##0.000 for a numeric value). Formatting is done the same way as Delphi formats strings (this is described in Delphi online help system, see the "Formatting strings" topic). Boolean values can be formatted by using the following formatting: False_string;True_string. (i.e. to show yes or no, use No;Yes as the format).
The formatting is applied to each and every variable in the memo. If a variable cannot be formatted, it will be shown as plain text. If you use several variables within a text object, but you want to use different formatting for each variable, you may override the default formatting by using the “#” tag followed by the formatting style. Put this formatting tag and the format string inside of the variable brackets, i.e.:
[Variable #format], where format is one of following values:
Here are some examples of using the “#” tag:
[Table1.“N1” #9.2] [Table1.“N2” #N9-2] [Table1.“N3” #N#,##0.00] - numeric formatting
[Table1.“Date1” #Ddd.mm.yyyy] [Table1.“Time” #Thh:mm:ss] - date/time formatting
[Table1.“Bool1” #BFalse;True] [Table1.“Bool2” #BNo;Yes] - boolean formatting
You cannot use the formatting tag in expressions that have been created in the variables editor (see below).
For reports where you would like to have objects change their font color, background color etc. based on a specific condition or expression, click the
button in the Text formatting toolbar. This will bring up the “Conditional highlighting” dialog where you may enter the conditions to be satisfied in the text box and select the various options available.

For example, assume it is necessary to pick out orders exceeding $1,000.00, Demo report "3- level" is an example of this. To achieve this, select the rectangle containing sum order and click on the highlight button in the formatting toolbar. In the textbox of the dialog type the condition “Value > 1000” without quotes. Select an appropriate font & background color then click on the Ok button. Your report will now show any orders over $1000.00 highlighted with the chosen color. Try various combinations of font styles and background colors to achieve the results you need.
By right clicking on the "Text" object you can set the following options:
Also you can find some additional properties in the Object Inspector: