Error with unsupported platform
Posted: Wed Mar 27, 2024 3:43 am
Hello,
I'm using C# WPF in .NET Core 6 in Visual Studio 2022
I have added the dll of **StiReport **to my project , but I got error for below code :
" System.PlatformNotSupportedException: 'Operation is not supported on this platform."
that works on .NET Framework 4.7.2 !
What should I do ?
I'm using C# WPF in .NET Core 6 in Visual Studio 2022
I have added the dll of **StiReport **to my project , but I got error for below code :
Code: Select all
public MainWindow()
{
InitializeComponent();
var report = new StiReport();
var pathreport = @"C:\Users\Administrator\source\repos\Gozaresh\Gozaresh\BUGETRP.mrt";
report.Compile(); //→ Error : System.PlatformNotSupportedException: 'Operation is not supported on this platform.'
report.Render();
report.Show();
}
that works on .NET Framework 4.7.2 !
What should I do ?