IPrxReportOptions.PreviewEnableEdit

Syntax

PreviewEnableEdit: Boolean;

PreviewEnableEdit: boolean;

Description

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

Comments

The property is available for shapes on opening for view.

Available values:

Example

Executing the example in repository 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;

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;

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

See also:

IPrxReportOptions