IPrxReportOptions.DrawTextFormat

Fore Syntax

DrawTextFormat: GxDrawTextFormat;

Fore.NET Syntax

DrawTextFormat: Prognoz.Platform.Intertop.Drawing.GxDrawTextFormat;

Description

The DrawTextFormat property determines the mode of text rendering in report sheets, report shapes and report charts.

Comments

The property is set to Default_ by default, the GDI+editor is used.

For details about working with WPF editor see the Using Formatted Text article.

Fore Example

To execute an example, add links to the Metabase, Drawing and Report system assemblies. The repository must contain a regular report with the Report identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Options: IPrxReportOptions;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("Report").Edit As IPrxReport;
    Options := Report.Options;
    Options.DrawTextFormat := GxDrawTextFormat.Wpf;
    Report.MetabaseObject.Save;
End Sub UserProc;

After executing the example the text rendering mode is changed in the regular report with the Report identifier.

Fore.NET Example

To execute an example, add links to the Metabase, Drawing and Report system assemblies. The repository must contain a regular report with the Report identifier.

Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
    Options: IPrxReportOptions;
Begin
    MB := Params.Metabase;
    Report := MB.ItemById["Report"].Edit() As IPrxReport;
    Options := Report.Options;
    Options.DrawTextFormat := GxDrawTextFormat.dtfWpf;
    Report.MetabaseObject.Save();
End Sub;

After executing the example the text rendering mode is changed in the regular report with the Report identifier.

See also:

IPrxReportOptions