Using System.Drawing.Common in Report.Blazor WebAssembly

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

Using System.Drawing.Common in Report.Blazor WebAssembly

Post by toananha22 »

Hi!

I'm using the source code for Report.Web, and there are some code snippets that create fonts as follows:

Code: Select all

var font = new Font(fontFamily, fontSize, FontStyle.Bold)
(StiText)oText.Font = font;
Currently, I want to switch to using Report.Blazor WebAssembly, but Blazor WebAssembly does not support System.Drawing.Common, so the code for the font doesn't seem to work. What should I do?
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Using System.Drawing.Common in Report.Blazor WebAssembly

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: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Using System.Drawing.Common in Report.Blazor WebAssembly

Post by Max Shamanov »

Hello,

Please try to change System.Drawing.Common to Stimulsoft.Drawing.

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

Re: Using System.Drawing.Common in Report.Blazor WebAssembly

Post by toananha22 »

Hi!

I've tried it, but even if I use: new Stimulsoft.Drawing.Font(fontfamily, size, FontStyle.Regular);
It still requires System.Drawing.Common.FontStyle, which is only supported on Windows. Does this affect my Blazor application if it runs on a different operating system?

Thank you.
Max Shamanov
Posts: 990
Joined: Tue Sep 07, 2021 10:11 am

Re: Using System.Drawing.Common in Report.Blazor WebAssembly

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.
Post Reply