IPrxReportOptions.PreviewEnableEdit

Fore Syntax

PreviewEnableEdit: Boolean;

Fore.NET Syntax

PreviewEnableEdit: boolean;

Description

The PreviewEnableEdit property determines whether the editing of cells located outside the data area is enabled in the view mode.

Comments

Available values:

Fore Example

Executing the example requires a regular report with the REPORT identifier, which contains data area.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Options: IPrxReportOptions;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    Options := Report.Options;
    Options.PreviewEnableEdit := True;
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example cells located outside the data area can be edited in the report opened for view.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Report;

Public Shared 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.PreviewEnableEdit := True;
    (Report As IMetabaseObject).Save();
End Sub;

See also:

IPrxReportOptions