Error Could not load type System.Windows.Forms.DataGridLineStyle

Stimulsoft Reports.WPF discussion
Post Reply
hosseintv
Posts: 2
Joined: Sat Jul 20, 2019 9:54 am

Error Could not load type System.Windows.Forms.DataGridLineStyle

Post by hosseintv »

Hi
I'm using StimulSoft 2021.4.2 and WPF .Net5.0.
I want to Design a report but there is a error

My Code :

Code: Select all


            StiReport report = new StiReport();
            
            var setting = SettingQuery.GetSettingAsync(1).Result;
            var branch = BranchQuery.GetBranchAsync(AppConfig.BranchId).Result;
            var varFactor = ServiceFactorQuery.GetFactorAdvanceAsync(factorId).Result;
            var varServices = ServiceFactorQuery.GetServiceDonesAdvanceAsync(factorId).Result;
            
            report.RegBusinessObject("Setting", setting);
            report.RegBusinessObject("Branch", branch);
            report.RegBusinessObject("Factor", varFactor);
            report.RegBusinessObject("Services", varServices);
            
            report.Dictionary.SynchronizeBusinessObjects();
            report.Dictionary.Synchronize();
            report.DesignV2WithWpf() or report.DesignWithWpf();
            
this error for design:
Could not load type 'System.Windows.Forms.DataGridLineStyle' from assembly 'System.Windows.Forms, Version=5.0.9.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Error Could not load type System.Windows.Forms.DataGridLineStyle

Post by Lech Kulikowski »

Hello,

Please send us your request with detailed description on support@stimulsoft.com.

Thank you.
Post Reply