It seems like the runtime requires WPF assemblies, but note that GemBox.Spreadsheet’s PDF writer no longer uses WPF starting from GemBox.Spreadsheet 4.5 version 1131.
So, can you try with the current latest version?
If the problem remains, please send us a small Visual Studio project that reproduces your issue so that we can investigate it.
The first number is the major version, so in your case “49” means you’re using GemBox.Spreadsheet 4.9.
The third number is the platform, in your case “310” means you’re using GemBox.Spreadsheet for .NET Core 3.1.
And the last number is the minor version, in your case “1103”.
So in short, you are using the latest version, but for WASM you should use GemBox.Spreadsheet for .NET Standard 2.0 (version “49.0.200.1103”).
Also, you’ll probably need to add its dependencies, you can see those on the “Dependencies” tab on NuGet:
I hope this helps.
If your problem remains, please send us a small project that shows what you currently have and I’ll help you to resolve its problem.
Thanks for your help on this!
I did try using the version suggested. Infact I think I was using that version anyway, it’s just that the version number (200/300) is not displayed on VS (probably is somewhere, but i cannot find it).
I’m going to take a different approach.
Your library works well on the server side, so we’ll just adjust an stream content.
Once I get couple minutes free, I’ll send you a repo. (standard Blazor WebAssembly template reproduces it)
Thankyou
Last just as an FYI, the problem is that GemBox.Spreadsheet for .NET Core 3.1 has some features that only work on Windows, they have WPF dependency.
And the NuGet resolution ends up using GemBox.Spreadsheet for .NET Core 3.1 instead of GemBox.Spreadsheet for .NET Standard 2.0.
However, note that we do plan to address this in the future. We will probably isolate the Windows-only features into a build that targets “net6.0-windows”, we plan to introduce this next year.