DisplayTabs: TriState;
DisplayTabs: Prognoz.Platform.Interop.ForeSystem.TriState;
The DisplayTabs property determines whether tabs of regular report sheets are displayed.
Available values of the property correspond to elements of the TriState enumeration:
OnOption. All tabs of regular report sheets are displayed.
OffOption. All tabs of regular report sheets are hidden.
Undefined. Tabs of regular report sheets are displayed if the Report Sheet Tabs checkbox located in the Show group on the View tab of the ribbon is selected.
Executing the example requires a regular report with the REPORT identifier.
Add links to the Metabase, Report system assemblies.
Sub UserProc;
Var
MB: IMetabase;
MOBj: IMetabaseObject;
Report: IPrxReport;
Options: IPrxReportOptions;
Begin
MB := MetabaseClass.Active;
MOBj := MB.ItemById("REPORT").Edit;
Report := MOBj As IPrxReport;
Options := Report.Options;
Options.DisplayTabs := TriState.OffOption;
MOBj.Save;
End Sub UserProc;
After executing the example report sheet tabs will be hidden.
Executing the example requires a regular report with the REPORT identifier.
Add links to the Report and ForeSystem system assemblies.
Imports Prognoz.Platform.Interop.Report;
Imports Prognoz.Platform.Interop.ForeSystem;
…
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
MOBj: IMetabaseObject;
Report: IPrxReport;
Options: IPrxReportOptions;
Begin
MB := Params.Metabase;
MOBj := MB.ItemById["REPORT"].Edit();
Report := MOBj As IPrxReport;
Options := Report.Options;
Options.DisplayTabs := TriState.tsOffOption;
MOBj.Save();
End Sub;
The result of Fore.NET example execution matches with that in the Fore example.
See also: