Page 1 of 1

Set ComponentStyle at BeforePrint event not working

Posted: Tue May 21, 2024 3:50 am
by toananha22
Hi!

I have a style named 'My_style', and I have the following code to set the style for a textbox in its BeforePrint event:

Code: Select all

Text15.ComponentStyle = "My_style";
But it doesn't work. Does StimulSoft.Reports.Blazor not support this type of assignment? Previously, it worked well in StimulSoft.Reports.Web.

Re: Set ComponentStyle at BeforePrint event not working

Posted: Tue May 21, 2024 6:56 am
by Max Shamanov
Hello,

Could you please send us a sample report with test data that reproduces the issue?

Thank you.

Re: Set ComponentStyle at BeforePrint event not working

Posted: Tue May 21, 2024 8:57 am
by toananha22
Hi,

I even used your sample template directly, and it still has the same issue.
https://github.com/stimulsoft/Samples-R ... eLists.mrt
I have attached an image showing how I am using it. Can you check if I am doing something wrong?

Thank you.

Re: Set ComponentStyle at BeforePrint event not working

Posted: Tue May 21, 2024 10:58 am
by Max Shamanov
Hello,

We need some additional time to investigate the issue.
We will let you know when we get any result.

Thank you.

Re: Set ComponentStyle at BeforePrint event not working

Posted: Thu May 23, 2024 10:40 am
by Max Shamanov
Hello,

We need more time to investigate this issue thoroughly.
But the best way for Blazor WASM is to use the Blocly script to change the style.
Please check the attached report.

Thank you.