Hello,
I am using the example Save method for ASP.Net Core projects shown here https://www.syncfusion.com/kb/11970/how-to-open-and-save-an-excel-file-to-server-in-the-spreadsheet
We are using the Spreadsheet component for our Angular project and when we click on the Save Button it should store the content of Spreadsheet component to our file repository located in our server by creating (if there is no such file) or rewrite (if such file exists) the contents of that file.
Unfortunately, when I have added the example method to our ASP.Net core backend project I keep getting the following error:
Failure: System.IO.FileNotFoundException: Could not load file or assembly 'Syncfusion.XlsIORenderer.Portable, Version=18.4140.0.42, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'. The system cannot find the file specified.
File name: 'Syncfusion.XlsIORenderer.Portable, Version=18.4140.0.42, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'
at Syncfusion.EJ2.Spreadsheet.SaveHelper.ExportAsStream()
at Syncfusion.EJ2.Spreadsheet.SaveHelper.SaveAsStream()
at Syncfusion.EJ2.Spreadsheet.Workbook.Save[T](SaveSettings saveSettings)
at DocumentService.Controllers.SpreadsheetController.Save(SaveSettings saveSettings) in
We are running our project in docker container using the Docker Desktop with WLS 2 engine (Ubuntu distro) on Windows 10. Also, we are using the newest versions of both front-end libraries (v. 19.2.47) and backend NuGet packages (v. 19.0.2.47).
Best Regards,
Ignacy Mielniczek
Hello Gayathri,
Thanks for a quick response. I am finally able to save excel files to specific directory in our project by downgrading the versions of Spreadsheet component both on front-end and backend sides from 19,2.47 to 18.3.47. However, unfortunately the following errors are occurring whenever I try to save my changes to our server:
Failure: System.IndexOutOfRangeException: Index was outside the bounds of the array. at Syncfusion.EJ2.Spreadsheet.SaveHelper.processBorder(String Border) at Syncfusion.EJ2.Spreadsheet.SaveHelper.UpdateStyles(IMigrantRange migrantRange, SpreadsheetCellStyle style) at Syncfusion.EJ2.Spreadsheet.SaveHelper.ProcessSheet(Int32 index) at Syncfusion.EJ2.Spreadsheet.SaveHelper.ProcessSheets() at Syncfusion.EJ2.Spreadsheet.SaveHelper.InitiateSave() at Syncfusion.EJ2.Spreadsheet.SaveHelper.SaveAsStream() at Syncfusion.EJ2.Spreadsheet.Workbook.Save[T](SaveSettings saveSettings) at DocumentService.Controllers.SpreadsheetController.Save(SaveSettings saveSettings) in ...
Failure: Newtonsoft.Json.JsonSerializationException: Error converting value "Calibri, sans-serif" to type 'Syncfusion.EJ2.Spreadsheet.FontFamily'. Path 'sheets[0].rows[0].cells[0].style.fontFamily', line 1, position 1535. ---> System.ArgumentException: Requested value 'Calibri, sans-serif' was not found.
Hello again Gayathri,
This time I am uploading a sample excel file with two sample tables in which the tables themselves or their cells borders or values are not being copied and pasted correctly from Excel to Spreadsheet component.
Could you help me by looking at them please? Thank you very much in advance.
Best Regards,
Ignacy Mielniczek
Attachment: Sample_tables_c35ce1a5.rar
Hello Gayathri,
Thanks for the responsI would like to ask you about the upcoming patch release. Has it been already released or is it still on the way?
Best Regards,
Ignacy Mielniczek
Hello Gayathri,
Thanks for the update. Soon I will check and let you know if everything is working correctly.
Best Regards,
Ignacy Mielniczek
Hello Gayathri,
Thank you all very much for the good job. Copying the tables from the previous file which I have attached earlier is just working as fine as we wanted.
However unfortunately, I have still the following problems occurring in Spreadsheet v. 19.2.57:
| #801208: Cannot read property 'length' of undefined |
Attachment: Screenshots_and_service_Controller_with_logs_5627f1b.rar