Error Could not load type System.Windows.Forms.DataGridLineStyle
Posted: Mon Nov 29, 2021 2:45 pm
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 :
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'.'
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();
Could not load type 'System.Windows.Forms.DataGridLineStyle' from assembly 'System.Windows.Forms, Version=5.0.9.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.'