IEaxAnalyzer.StyleSheet

Fore Syntax

StyleSheet: IStyleSheet;

Fore.NET Syntax

StyleSheet: Prognoz.Platform.Interop.Drawing.StyleSheetClass;

Description

The StyleSheet property determines external styles table used by express report.

Comments

To work with internal styles table, use the IEaxAnalyzer.InnerStyleSheet property.

Fore Example

Executing the example requires that a repository contains express report with the EXPRESS_STYLE identifier and styles table with the STYLE_TB identifier.

Add links to the Drawing, Express, Metabase system assemblies.

Sub UserProc;
Var
    mb: IMetabase;
    Report: IEaxAnalyzer;
    Style: IStyleSheet;
Begin
    mb := MetabaseClass.Active;
    Report := mb.ItemById("EXPRESS_STYLE").Edit As IEaxAnalyzer;
    Style := mb.ItemById("STYLE_TB").Bind As IStyleSheet;
    Report.StyleSheet := Style;
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example the STYLE_TB external styles table is connected to the EXPRESS_STYLE report.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Drawing;
Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    mb: IMetabase;
    Report: IEaxAnalyzer;
    Style: StyleSheetClass;
Begin
    mb := Params.Metabase;
    Report := mb.ItemById["EXPRESS_STYLE"].Edit() As IEaxAnalyzer;
    Style := mb.ItemById["STYLE_TB"].Bind() As StyleSheetClass;
    Report.StyleSheet := Style;
    (Report As IMetabaseObject).Save();
End Sub;

See also:

IEaxAnalyzer