PreviewEnableEdit: Boolean;
PreviewEnableEdit: boolean;
The PreviewEnableEdit property determines whether the editing of cells located outside the data area is enabled in the view mode.
Available values:
True. Editing is enabled for cells located outside the data area.
False. Default value. Editing is disabled for cells located outside the data area.
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.
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: