The Label control is used to display textual information in a report. For example, the
Label may be used to show static text, as well as data from the bound data source. In addition, it can be used to calculate a summary function for the specified data field, or to extend its usual functionality by writing scripts for the available events.
After a Label is added to a report, its text, appearance and other properties can be customised using the
Property Grid panel. Frequently used properties are also available via a control's
Smart Tag and
Formatting Toolbar, which makes it easy to perform common operations.
In the Property Grid, the Label control's properties are divided into the following groups:
Displays the Formatting Rules Editor, used to choose which rules should be applied to the control during report generation, and define the precedence of the applied rules. Refer to
Conditionally Change a Control's Appearance for further information.
Specifies the vertical anchoring style of a Label, so that after page rendering it stays attached to the top control, bottom control, or both. The property setting is useful for data-bound
Labels located between upper and lower controls, which are able to resize depending on their contents.
When this property is set to Yes, a Label's height can be automatically increased, if required, to fit the text. If there are other controls below the current
Label, they will be pushed down to prevent them from overlapping. Note that if a control overlaps the grown
Label by even one pixel, it will not be pushed down by the expanded
Label.
When this property is set to Yes, and the text does not completely fill a Label, then the
Label's height will be decreased to the height of its text. If there are other controls below the current
Label, they will be moved up to fill the gap. Note that if a control overlaps a shrunk
Label by even one pixel, it will not be pushed up by the shrinking
Label.
Specifies whether the contents of a Label can be horizontally split across pages. In other words, if a
Label occupies more space than remains on the page, this property specifies whether this
Label should be split between the current page and the next, or whether it will be printed entirely on the next page. If a label will not fit on the next page either, then the
Label will be split, regardless of this property's value.
When this property is set to Yes, a
Label processes newline characters found in the text to start a new line. For example, when editing a
Label’s text, a new line can be inserted by pressing
ENTER, and in this case, the
Multiline property will be automatically set to
Yes.
When this property is set to Yes, text entered into the multiline
Label is wrapped to the next line if it does not fit the line or is interrupted by a newline character. If the property is set to
No, text entered into the multiline
Label will be displayed on the same line except where forced on a new line by a newline character.
If the current report is bound to data, this property is used to bind some of the control's properties (Bookmark,
Navigation URL,
Tag and
Text) to a data field obtained from the report's data source, and to apply a format string to it. Refer to
Display Values from a Database (Bind Report Elements to Data) for further information.
Provides access to the Text property of a
Label in the Multiline mode.
If the current report has a data source, the Tag property can be bound to a data field obtained from the data source. To do this, expand the (
Data Bindings) property and from the Tag.Binding dropdown list, select the required data field.
If the current report has a data source, the Text property can be bound to a data field obtained from the data source. To do this, expand the (
Data Bindings) property and from the Text.Binding dropdown list, select the required data field. Refer to
Display Values from a Database (Bind Report Elements to Data) for further information.
If the current report has a data source, the Bookmark property can be bound to a data field, obtained from the data source. To do this, expand the (
Data Bindings) property, and from the Bookmark.Binding dropdown list, select the required data field.
Use the Navigation URL property to specify a URL for web browser navigation when a user clicks the
Label. The web browser displays a page in a window or a frame as specified by the Navigation Target property.
If the current report has a data source, the Navigation URL property can be bound to a data field obtained from the data source. To do this, expand the (
Data Bindings) property, and in the
Navigation URL.Binding dropdown selector, select the required data field.