Glossary Item Box

Supported HTML Tags | RichText Walkthroughs

See Also ActiveReports for .NET 2 Online Help Send feedback to Data Dynamics

RichText

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.

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

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

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.

 

Supported HTML Tags | RichText Walkthroughs

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.