SetStyleToComponent()-Method not enforced / overwritten by (default) colors
Posted: Tue Dec 05, 2023 1:22 pm
I am looking for a way to set the style colors of a chart component in a report dynamically via code.
My minimal working example (see 'Variant 1 (preferred variant) 'StiChartStyle' of chart set via event/code) on Page 1 in the attached mrt-file) works in the editor Stimulsoft Reports (2021.4.4 from 19.11.2021, WPF v1, .NET 4.8, 2003-2023 ©Stimulsoft).
However, when the report based on this mrt-file is generated in the source application, some default colors are shown (not the default colors of the report file). All dll-files in the source application have the same version 2021.4.4.0, except 'Stimulsoft.Svg.dll' (2021.4.3.0).
Could you help me by telling me how to enforce ".SetStyleToComponent(Chart0)" in line 875 of the mrt-file in a generated report?
If this is not possible, could you give me a hint on how to set the style colors via 'Variant 3 / Code-generated data and assign 'AutoSeriesColorDataColumn' via event/code) on Page 1 or any other simple way to do this code-only?
Regards,
Ed
My minimal working example (see 'Variant 1 (preferred variant) 'StiChartStyle' of chart set via event/code) on Page 1 in the attached mrt-file) works in the editor Stimulsoft Reports (2021.4.4 from 19.11.2021, WPF v1, .NET 4.8, 2003-2023 ©Stimulsoft).
However, when the report based on this mrt-file is generated in the source application, some default colors are shown (not the default colors of the report file). All dll-files in the source application have the same version 2021.4.4.0, except 'Stimulsoft.Svg.dll' (2021.4.3.0).
Could you help me by telling me how to enforce ".SetStyleToComponent(Chart0)" in line 875 of the mrt-file in a generated report?
If this is not possible, could you give me a hint on how to set the style colors via 'Variant 3 / Code-generated data and assign 'AutoSeriesColorDataColumn' via event/code) on Page 1 or any other simple way to do this code-only?
Regards,
Ed