Hi everyone,
This problem might have already been encoutered I guess but I didn't find it so any help would be very appreciated
So here is my code:
using System;
using System.Text;
using System.Windows.Forms;
using Spire.Xls;
using System.IO;
Spire.Xls.Workbook Wb = new Spire.Xls.Workbook();
Worksheet sheet = Wb.Worksheets[0];
sheet.Range["A1"].Text = "Hello world";
Wb.SaveToFile(@"Disk:\Users\myself\mypath\Project_name\Test.xlsx",ExcelVersion.Version2016);
System.Diagnostics.Process.Start(Wb.FileName);
Basically, the program blocks to this line "Spire.Xls.Workbook Wb = new Spire.Xls.Workbook();" and gives me this error message:
"System.TypeLoadException: 'Impossible de charger le type 'spr' à partir de l'assembly 'Spire.XLS, Version=11.8.6.0, Culture=neutral, PublicKeyToken=mytoken', car il essaie d'implémenter une classe en tant qu'interface.'"
That means that I cannot charge 'spr' type from the assembly 'Spire.XLS, Version=11.8.6.0, Culture=neutral, PublicKeyToken=mytoken' because the program tries to implement a class as an interface.
What could be the cause of this issue please ?
Thanks in advance for helping and have a great day.
Pierre