MX-Frame Library Send comments on this topic.
Label
MX-Developer > Report - MxReport > Designing a Report > Controls > Label

Glossary Item Box

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

  1. In Solution Explorer open the desired MxReport component (StockReport) by double clicking it.
  2. Open Toolbox window and expand DX:Reports.vX.X section.
  3. Select XRLabel control and drag it to the desired band (ReportHeader).
  4. 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. 

©2009 Metronik. All Rights Reserved.