Page 1 of 1
Using System.Drawing.Common in Report.Blazor WebAssembly
Posted: Mon May 20, 2024 8:56 am
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?
Re: Using System.Drawing.Common in Report.Blazor WebAssembly
Posted: Mon May 20, 2024 9:44 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: Using System.Drawing.Common in Report.Blazor WebAssembly
Posted: Tue May 21, 2024 6:34 am
by Max Shamanov
Hello,
Please try to change System.Drawing.Common to Stimulsoft.Drawing.
Thank you.
Re: Using System.Drawing.Common in Report.Blazor WebAssembly
Posted: Tue May 21, 2024 7:38 am
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.
Re: Using System.Drawing.Common in Report.Blazor WebAssembly
Posted: Tue May 21, 2024 8:36 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.