I have created a report where I have several style rules. These style rules are created on style selector and type selector. I have also several exported style rules using the styles used in the report. For example, in the textboxes with style name 'main' have background color as yellow and in my exported style rule the background color is blue for the style name 'main'. In a console application, I am binding these external styles using the following code.
Report report = (Report)xmlSerializer.Deserialize(xmlReader);
ExternalStyleSheet ess =
new
ExternalStyleSheet(
this
.themeFilePath);
report.ExternalStyleSheets.Add(ess);
The issue is even though I add the external style sheet the background color is not changing. But if I delete the style rule from the / file the external style sheet is applied. Is external style sheets does not override the styles that are already defined in the project? If not is there a way to override styles that are already defined in the design?
Thank you