ActiveReports 6 Online Help
RichText
Show AllShow All
Hide AllHide All

The RichText control gives you an enormous amount of control over the appearance of text in the report. Unlike the TextBox control which applies formatting to the entire contents of the control, the RichText control allows you to apply selective formatting to various areas of text within the control.

For example, the Find method allows you to find specific words or characters in the control, while the various selection properties allow you to select text and change its formatting in a dozen ways.

You can set the control's text directly using the Text, Html, or RTF properties, or you can load it from a plain text, RTF or HTML file or stream using the Load method.

Tip: In order to show special characters in an html file loaded into the control, use the character entity reference (for example, è for è or & for &).

Use the InsertField and ReplaceField methods for field merging reports, such as the mail merge report demonstrated in the Mail Merge with RichText walkthrough. The RichTextBox now automatically binds inserted fields to the report's fields collection, so you only need to use InsertField and ReplaceField for special cases such as conditional values or system dates.

Note: If you have trouble loading a file at design time, be sure that you are not in edit mode. You are in edit mode if your cursor appears inside the control.

The following is a list of all of the HTML tags that can be used with the RichText control. Unsupported tags are ignored. Please note that W3C conventions are strictly observed.

Supported HTML Tags

The style attribute of <FONT>, <P>, and <TABLE> supports the following properties:

Supported Style Attribute Properties

See Also

Walkthroughs

Getting Started