Richtext Control

Richtext Control Overview

The Rich Text control displays formatted text (static, dynamic or mixed) in your report.

To add this control to a report, drag the Rich Text item from the Toolbox onto the report's area.

You can load RTF or HTML content from an external file. Click the control's smart tag and select Load File.

In the invoked Open dialog, use the drop-down list to define the file's extension (.rtf.docx.txt.htm or .html), select the file and click Open.

You can double-click the Rich Text to invoke its in-place editor and enter static text. Use the Toolbar's Font group to format the text.

Press CTRL+Enter to submit changes and exit the in-place editor.

The Rich Text's content is exported as plain text only when exporting to XLS or XLSX format.

Bind to Data

You can bind the control's RTF property to a data field obtained from a report's data source. Click the control's smart tag, expand the Rtf Expression's drop-down list and select the data field.

You can bind the control to a data field that provides HTML content in the same way. To do this, click the control's smart tag and use the Html Expression's drop-down list.

Click the Rtf Expression or Html Expression option's ellipsis button to invoke the Expression Editor. This editor allows you to construct a complex binding expression with two or more data fields.

You can also drag and drop any field from the Field List with the right mouse button and select the Rich Textmenu item. This creates a new Rich Text control bound to this field.

The Rich Text also enables you to merge data fields and static content in its text.

Related Links

Related Articles
Tuesday, 08 January 2019 Posted in Report Controls