IPrxDocument.RichText

Fore Syntax

RichText: String;

Fore.NET Syntax

RichText: string;

Description

The RichText property returns contents of a regular report text sheet in RTF format.

Fore Example

Executing the example requires a form, a button named Button1 this form, the ReportBox component, and the UiReport component named UiReport1 that is used as a data source for ReportBox. A regular report that contains a text sheet with some contents is linked to UiReport1.

The example is a handler of the OnClick event for a button.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var 
    pd: IPrxDocument;
Begin
    pd:= (UiReport1.Instance As IPrxReport).ActiveSheet As IPrxDocument;
    Debug.WriteLine(pd.RichText);
End Sub Button1OnClick;

After executing the example clicking the button displays the contents of the text sheet in the console in RTF format.

Fore.NET Example

Executing the example requires a form, a button with the identifier Button1 on this form, the ReportBoxNet component, and the UiReportNet component named UiReportNet1, that is used as a data source for ReportBoxNet. A regular report that contains a text sheet with some contents is linked to UiReportNet1.

The example is a handler of the Click event for a button.

Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.Tab;
Imports Prognoz.Platform.Interop.Forms;
Imports System.Diagnostics;

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var 
    pd: IPrxDocument;
Begin
    pd:= (UiReportNet1.ReportUI.Instance As IPrxReport).ActiveSheet As IPrxDocument;
    System.Diagnostics.Debug.WriteLine(pd.RichText);
End Sub Button1OnClick;

After executing the example clicking the button displays the contents of the text sheet in the console in RTF format.

See also:

IPrxDocument