Articles in this section
Category / Section

How to remove Trial version tab created in Spreadsheet?

1 min read

This article explains how to remove the Trial version tab created in the JavaScript Spreadsheet component when the save/open action is performed. We have used our ej2 services for demo purpose only. So, we suggest you use your local service for open/save functionality. For local service, you need an ASP.NET Core project as a backend for Open/Save functionality in your frontend application. 

 

Create an ASP.NET Core project and generate the license based on the below KB link. 

 

https://www.syncfusion.com/kb/8976/how-to-generate-license-key-for-essential-studio-products 

 

And include the licensed key in your project startup file as like in the below documentation link. 

 

https://help.syncfusion.com/common/essential-studio/licensing/license-key 

 

The list of below dependencies is 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 to the below links.  

 

https://ej2.syncfusion.com/documentation/spreadsheet/open-save/#server-dependencies 

 

For more details regarding the Open/Save server functionality, please refer to the below links. 

 

https://ej2.syncfusion.com/aspnetcore/documentation/spreadsheet/open-save/ 

 

Open Method: 

 

   public IActionResult Open([FromForm]IFormCollection openRequest)
        {    
            OpenRequest open = new OpenRequest();
            open.File = openRequest.Files[0];
            return Content(Workbook.Open(open));
        }

 

  

Save Method: 

 

public IActionResult Save([FromForm]SaveSettings saveSettings)
        {
            return Workbook.Save(saveSettings);
        }

 

 

Refer the above Open/Save controller method link in openUrl and saveUrl respectively in the Spreadsheet as like as below. 

 

[JS]:

 

var spreadsheet = new ej.spreadsheet.Spreadsheet({
  openUrl: ”Your Hosted link /controller name/open action method”,
  saveUrl:
   ” Your Hosted link /controller name/save method”  
})

 

  

For example, the link would be: http://localhost:49371/Spreadsheet/Save  

 

We have published our API services in the GitHub location, for more details please refer to the below link.  

 

Service sample Locationhttps://github.com/SyncfusionExamples/EJ2-Spreadsheet-WebServices/  

 

Please find the below documentation to know more about the Spreadsheet open/save action.

 

https://ej2.syncfusion.com/javascript/documentation/spreadsheet/open-save/

 

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied