IPrxTableIslandGroupingTotals.Style

Syntax

Style : IPrxCellStyle;

Description

The Style property determines totals formatting.

Example

Sub Main;

Var

MB: IMetabase;

MObj : IMetabaseObject;

Report : IPrxReport;

TabIs : IPrxTableIslands;

TI : IPrxTableIsland;

Grs : IPrxTableIslandGroupings;

Gr : IPrxTableIslandGrouping;

GrT : IPrxTableIslandGroupingTotals;

Style : IPrxCellStyle;

Begin

MB := MetabaseClass.Active;

MObj := MB.ItemById("Report").Edit;

Report := MObj As IPrxReport;

TabIs := Report.TableIslands;

TI := TabIs.Item(0);

TI := Ti.Edit;

Grs := TI.Groupings;

Gr := Grs.Item(0);

GrT := Gr.Totals;

GrT.Caption.AsString := "VALUE";

GrT.Method(TI.Layout.Rows(0).Cells(0)).Method := BasicAggregatorOperation.Sum;

Style := GrT.Style;

Style.BackgroundColor := New GxColor.CreateRGB(0,0,250);

Style.Font.Bold := TriState.OnOption;

TI.Save;

MObj.Save;

End Sub Main;

After executing the example totals parameters are set up. Report - identifier of the regular report, which sheet contains a relational data area.

See also:

IPrxTableIslandGroupingTotals