Error with unsupported platform

Stimulsoft Reports.NET discussion
Post Reply
generoach
Posts: 1
Joined: Wed Mar 27, 2024 3:39 am

Error with unsupported platform

Post 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 ?
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Error with unsupported platform

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply