See Also

RichTextBox Class  | RichTextBox Members

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Html Property

Sets or returns the hypertext to be rendered in the control.

[Visual Basic]
Public Property Html As String
[C#]
public string Html {get; set;}

Return Type

Valid hypertext with tags which will be rendered in the control.

Remarks

You can bind a RichTextBox control to html in a database, but the text in the database must start with <HTML>.  If the html in your database does not start with <HTML>, you can set the DataField property to ="<HTML>" + DataFieldName at design time, or set it at run time by using the following code:

private void Detail_Format(object sender, System.EventArgs eArgs){     this.RichTextBox1.Html = "\n" + this.RichTextBox1.Text;}

Example

[C#] 

Private void ReportHeader_Format(object sender, System.EventArgs eArgs) 

    RichTextBox1.Html = RichTextBox1.Text; 
}

[Visual Basic] 

Private Sub ReportHeader_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles ReportHeader.Format
    RichTextBox1.Html = RichTextBox1.Text
End Sub

See Also

RichTextBox Class  | RichTextBox Members

 

 


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