StyleSheet: IStyleSheet;
The StyleSheet property determines the styles table, which styles are used to format cells of regular report tables.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
StyleSheet: IStyleSheet;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemById("REPORT_GLOBALSTYLE").Edit;
Report := MObj As IPrxReport;
StyleSheet := MB.ItemById("Global_Style").Bind As IStyleSheet;
Report.StyleSheet := StyleSheet;
MObj.Save;
End Sub Main;
After executing the example the styles table with the Global_Style identifier is assigned as the formatting styles set for a regular report with the REPORT_GLOBALSTYLE identifier.
See also: