Hi
We're creating a reporting application that uses a shared external style sheet across a number of reports.
I'd like to create a report that lists all the styles in the stylesheet - I thought I'd try something like this in the report constructor (pseudo code only):
Add the stylesheet file to the reports
Use the collection of styles as an object data source
Create a conditional formatting rule that uses a named style for each row.
I can't find a way to enumerate the styles that are added by external style sheet - this is my code in the report constructor:
no styles are found by the foreach loop...
Am I doing something wrong? Can my approach work?
thanks
Andy
We're creating a reporting application that uses a shared external style sheet across a number of reports.
I'd like to create a report that lists all the styles in the stylesheet - I thought I'd try something like this in the report constructor (pseudo code only):
Add the stylesheet file to the reports
Use the collection of styles as an object data source
Create a conditional formatting rule that uses a named style for each row.
I can't find a way to enumerate the styles that are added by external style sheet - this is my code in the report constructor:
ess =
new
ExternalStyleSheet(path);
ExternalStyleSheets.Add(ess);
foreach
(StyleRule style
in
StyleSheet)
{
//do something with styles;
}
no styles are found by the foreach loop...
Am I doing something wrong? Can my approach work?
thanks
Andy