Set ComponentStyle at BeforePrint event not working

Stimulsoft Reports.BLAZOR discussion
Post Reply
toananha22
Posts: 10
Joined: Thu Jul 27, 2023 2:59 am

Set ComponentStyle at BeforePrint event not working

Post 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.
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Set ComponentStyle at BeforePrint event not working

Post by Max Shamanov »

Hello,

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

Thank you.
toananha22
Posts: 10
Joined: Thu Jul 27, 2023 2:59 am

Re: Set ComponentStyle at BeforePrint event not working

Post 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.
Attachments
beforePrint.PNG
beforePrint.PNG (128.41 KiB) Viewed 476 times
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Set ComponentStyle at BeforePrint event not working

Post 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.
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Set ComponentStyle at BeforePrint event not working

Post 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.
Attachments
TextStyle2.mrt
(748.39 KiB) Downloaded 41 times
Post Reply