How to import data into Syncfusion React Spreadsheet from external excel file?

Is this available in the react spreadsheet package? @syncfusion/ej2-react-spreadsheet

https://www.syncfusion.com/kb/11955/how-to-import-an-external-url-excel-file-while-initial-load-the-spreadsheet-component

Seems like the example above is using the @syncfusion/ej2-spreadsheet

1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team May 10, 2021 11:00 AM UTC

Hi Freddy, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement and it can be achievable in our Spreadsheet by using the open method. For your convenience, we have prepared the sample that load the excel file from external server in spreadsheet created event as like in the below code example. 
 
 created() { 
    fetch( 
    ).then(response => { 
      response.blob().then(fileBlob => { 
        var file = new File([fileBlob], "Sample.xlsx"); 
        this.spreadsheet.open({ file: file }); // To open the excel file 
      }); 
    }); 
  } 
 
 
Could you please check the above links and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 



Marked as answer
Loader.
Up arrow icon