TableStyle: ITabTableStyle;
The TableStyle property determines the formatting style of the data area table.
Executing the example requires that the repository contains a regular report with the REPORT identifier. Add links to the Report, Metabase and Tab system assemblies. At least one data source is added to this regular report. A data area is built on the basis of this source.
Sub UserProc;
Var
MB: IMetabase;
Rep: IPrxReport;
DataIs: IPrxDataIsland;
DataIsProp: IPrxDataIslandProperties;
TabStyle: ITabTableStyle;
Begin
MB := MetabaseClass.Active;
Rep := MB.ItemById("REPORT").Edit As IPrxReport;
DataIs := Rep.DataIslands.Item(0).Edit;
DataIsProp := DataIs.Properties;
TabStyle := DataIsProp.TableStyle;
TabStyle.AssignPredefined(TabTablePredefinedStyle.Orange);
DataIs.Save;
(Rep As IMetabaseObject).Save;
End Sub UserProc;
After executing the example the orange table formatting style is set for the first data area of the regular report.
See also: