Hi Luca,
Thank you for your update.
We have checked your reported requirement and we would like to let you know that we have used our ej2 services for demo purpose only. So we suggest you to use your local service for open/save functionality. For local service you need ASP.NET Core project as a backend for Open/Save functionality in your angular application.
Create ASP.NET Core project and generate the license based on the below KB link.
And include the licensed key in your project startup file as like in the below documentation link.
The list of below dependencies are required to use the EJ2 Spreadsheet in your application.
1. Syncfusion.EJ2
2. Syncfusion.EJ2.Spreadsheet
3. Syncfusion.Compression.Base
4. Syncfusion.XlsIO.Base
For more details Please refer the below links.
For more details regarding the Open/Save server functionality. Please refer the below links.
Open Method:
public IActionResult Open(IFormCollection openRequest)
{
OpenRequest open = new OpenRequest();
open.File = openRequest.Files[0];
return Content(Workbook.Open(open));
} |
Save Method:
public void Save(SaveSettings saveSettings)
{
Workbook.Save(saveSettings);
} |
Refer the above Open/Save controller method link in openUrl and saveUrl respectively in spreadsheet as like as below.
<ejs-spreadsheet openUrl=”Your Hosted link /controller name/open action method” saveUrl=” Your Hosted link /controller name/save method”
> </ejs-spreadsheet> |
For example link would be: "http://localhost:49371/Spreadsheet/Save"
Could you please check the above details and get back to us, if you need any further assistance on this.
Regards,
Sangeetha M