Label

The Label element is used for adding static text such as titles, caption, etc. in Report.

The Field tab consists of the Field Type combo box. The default Field Type for Labels is Literal. The text to be displayed in the Label can be entered in the text field and it will be shown exactly as entered. No formatting will be applied, because you can enter whatever text you want to see. On selecting field types other than Literal the Label element changes to a Data Field element. In these other modes, formatting is applied

Select the Font tab. In this tab the font settings are specified. The Font Name can be selected from the combo box. The Size of the Field is selected from the field and the Font styles such as Italic, Bold, Strikethrough or Underline is chosen by selecting the corresponding check box. The colour of the font is entered in the text box. Alternatively, by clicking the button on the right of the text box the colour and the transparency can be selected from the Choose colour dialog window as mentioned earlier.

As mentioned above, the format tab is not applicable for Literal Labels.

The Scripts tab contains the Render If, On Render Begin and On Render End text fields. For more details on the use of JavaScript refer to Chapter 6, Scripting with JavaScript.

After setting all the properties click on the Finish button.

The additional properties that are specific only to the Label element are given below:

Orientation: The degree of orientation is entered in the Orientation field of the Properties table. The values that can be specified for the Orientation are 90, 180, 360 and so on. The text will be tilted based on the angle specified in the Orientation field.

Note

Hide Duplicates is not applicable for the Literal field type, it is only applied for other field types. For a description of Hide Duplicates, please see the Data Field component below.