ActiveReports 8
Html Property
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace > RichTextBox Class : Html Property

Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Property Html As System.String
C# 
public System.string Html {get; set;}

Property Value

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#Copy Code
private void reportHeader1_Format(object sender, System.EventArgs e)
{
    RichTextBox1.Html = RichTextBox1.Text;
}
Visual BasicCopy Code
Private Sub ReportHeader1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ReportHeader1.Format
    RichTextBox1.Html = RichTextBox1.Text
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also