IPrxReport.StyleSheet

Syntax

StyleSheet: IStyleSheet;

Description

The StyleSheet property determines the styles table, which styles are to be used to format cells of regular report tables.

Example

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:

IPrxReport