IEaxTableStyle.TableStyle

Syntax

TableStyle: ITabTableStyle;

Description

The TableStyle property returns formatting style applied to dimension element areas in the express report table.

Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier.

Sub Main;

Var

MB: IMetabase;

MObj: IMetabaseObject;

Expr: IEaxAnalyzer;

Grid: IEaxGrid;

Style: ITabTableStyle;

s1, s2: ITabCellStyle;

Begin

s1 := New TabCellStyle.Create;

s1.BackgroundColor := GxColor.FromName("AliceBlue");

s2 := New TabCellStyle.Create;

s2.BackgroundColor := GxColor.FromName("Silver");

MB := MetabaseClass.Active;

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

Expr := MObj As IEaxAnalyzer;

Grid := Expr.Grid;

Style := Grid.Style.TableStyle;

Style.RowFirstStripe.Style := s1;

Style.RowSecondStripe.Style := s2;

MObj.Save;

End Sub Main;

After executing the example the formatting style of dimension element areas in the express report table is changed. Element containing rows have alternating colors.

See also:

IEaxTableStyle