Appropriate for displaying, entering, and manipulating formatted text.
Remarks
A rich text control displays, enters and manipulates formatted text. It is possible to enter and format its text at design time, load it from an external file, or bind this control to a data field.
The RichText control does everything the Label control does, but it can also apply formatting to any part of the text. Such formatting includes setting the font used, font styles and font sizes.
It is possible to load a file from the file system into the control. The formatting used in the file remains the same. It is possible to load file with .rtf and .txt extensions.
To load a file
- Select the control on a report.
- Open Properties window.
- At the bottom of the window click Load File…
- Select a file from the file system and click Open.
Example (MxSpace)
To see the RichText on a report component, open MxSpace solution project in Visual Studio. In Solution Explorer expand node Reports and double click WorkOrderBomReport.cs. RichText control contains report title and is displayed in ReportHeader band.
To add RichText to a report
- In Solution Explorer open the desired MxReport component (WorkOrderBomReport) by double clicking it.
- Open Toolbox window and expand DX:Reports.vX.X section.
- Select XRRichText control and drag it to the desired band (ReportHeader).
- Open Properties window.
- In property Text enter the text to display.
To learn more about the control, how to implement it and use it see Developer Express documentation.