StyleSheet: IStyleSheet;
StyleSheet: Prognoz.Platform.Interop.Drawing.StyleSheetClass;
The StyleSheet property determines external styles table used by express report.
To work with the internal styles table, use the IEaxAnalyzerCore.InnerStyleSheet property.
Executing the example requires that a repository contains an express report with the EXPRESS_STYLE identifier and a 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.
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: