Posted 6 February 2020, 11:46 am EST
I have a ASPNET Core API Project and I need to generate a PDF report on the fly using my C1.Win.C1FlexReport. Everything compilies on the code but when I execute the code, exactly when it tries to load the C1FlexReport I get the following error:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.
File name: 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
at TestApp.CoreAPI.Reporting.ReportEngine.GenerateCustomReport(C1FlexReport rpt, DataSet data, String reportName, String reportTitle, DateTime reportDate, String sortGroup, String sortField, Boolean saveReport, String[] groups, String[] replaceField, String[] fieldValue, Guid uid)
Maybe Im not referecing the right DLL.
And because is NetCore and Web Project I can add a reference to WinForms.
Any clue?