Page 1 of 1

Error with unsupported platform

Posted: Wed Mar 27, 2024 3:43 am
by generoach
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 :

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();
        }
" System.PlatformNotSupportedException: 'Operation is not supported on this platform."

that works on .NET Framework 4.7.2 !

What should I do ?

Re: Error with unsupported platform

Posted: Wed Mar 27, 2024 5:10 am
by Lech Kulikowski
Hello,

Please check the following samples:
https://github.com/stimulsoft/Samples-Reports.WPF

Thank you.