ActiveReports for .NET 3 Online Help Request technical support
RichText
See Also
User Guide > Concepts > RichText

Glossary Item Box

The RichText control offers the user 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 the developer to find specific words or characters in the control, while the various selection properties allow the results of this method to be used to select text and change its formatting in a dozen ways.

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

In order to show special characters in an html file loaded into the control, use the character entity reference (i.e. è for è).

 

The InsertField and ReplaceField methods enable field merging reports, such as the mail merge report demonstrated in the Rich Text and Field Merging walkthrough. The RichTextBox now automatically binds inserted fields to the report's fields collection.

To load a file at design time, be sure that you are not in edit mode.

See Also

©2009. All Rights Reserved.