Displays single and multiline text in a report.
Remarks
Label controls are typically used to provide some text information in a report. Text information usually explains or defines a purpose or content of some data field.
Summary
Label can also contain summary information on a specific field in the data source attached to a report. Summary can calculate many different functions such as sum, average, minimum, maximum, etc. The calculation can also be done for a specific band as well as for the entire report. To implement summary on a label define label’s Summary property.
Data Field
Label text may be either static or dynamically populated from a report's data source. Label can present the value of any field defined in the data source. In order to link a label to a data source field, define Binding property in DataBindings section.
Example (MxSpace)
To see the Label on a report component, open MxSpace solution project in Visual Studio. In Solution Explorer expand node Reports and double click StockReport.cs. Label control is located in ReportHeader band.
To add Label to a report
- In Solution Explorer open the desired MxReport component (StockReport) by double clicking it.
- Open Toolbox window and expand DX:Reports.vX.X section.
- Select XRLabel control and drag it to the desired band (ReportHeader).
- In property Text define the text which will be displayed in the label.
To learn more about the control, how to implement it and use it see Developer Express documentation.