Open remote excel file

Lets say i have a specific url which will return a excel file, how can this component open that URL ? 

i tried using openUrl properties but it didnt work

1 Reply

SD Saranya Dhayalan Syncfusion Team March 4, 2020 11:21 AM UTC

Hi asdasd 
 
Thank you for contacting Syncfusion support 
 
We have checked your reported requirement, we can achieve this in the created event. you can load it to the Spreadsheet control using open method. Please refer the below code snippets. 
 
created: (): void => { 
            fetch("https://www.eve24hrs.com/eve/upload/drive/mydrive_file_20190703100010_78572.xlsx") 
 
                .then((response) => { 
 
                    response.blob().then((fileBlob) => { 
 
                        var file = new File([fileBlob], "Sample.xlsx"); 
 
                        spreadsheet.open({ file: file }); 
 
                    }) 
 
                }) 
        } 
    }); 
 
For your convenience, we have prepared a sample. Please find the below sample link 
 
 
Could you please check the above sample and get back to us if you need further assistance on this? 
 
Regards, 
Saranya D 


Loader.
Up arrow icon