IPrxControl.Sheet

Fore Syntax

Sheet: IPrxSheet;

Fore.NET Syntax

Sheet: Prognoz.Platform.Interop.Report.IPrxSheet;

Description

The Sheet property determines a regular report sheet controlled by the control. The property is set to Null if the entire report is controlled. This property is outdated, use IPrxControlAppearance.Sheet.

Fore Example

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
    Sheet: IPrxSheet;
    s: String;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById(
"Report").Bind As IPrxReport;
    Contrls := Report.Controls;
    Contrl := Contrls.Item(
0);
    Sheet := Contrl.Sheet;
    s := Sheet.Name;
End Sub UserProc;

After executing the example the "s" variable contains name of the sheet controlled by the first control of the regular report. The identifier of the regular report - Report.

Fore.NET Example

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

Public Sub UserProc(Params: StartParams);
Var
    MB: IMetabase;
    Report: IPrxReport;
    Contrls: IPrxControls;
    Contrl: IPrxControl;
    Sheet: IPrxSheet;
    s: String;
Begin
    MB := Params.Metabase;
    Report := MB.ItemById["Report"].Bind() As IPrxReport;
    Contrls := Report.Controls;
    Contrl := Contrls.Item[0];
    Sheet := Contrl.Sheet;
    s := Sheet.Name;
End Sub;

After executing the example the "s" variable contains name of the sheet controlled by the first control of the regular report. The identifier of the regular report - Report.

See also:

IPrxControl