create excel from ajax

Hi,

I want create an excel, but the request is with ajax, but I don't know how download the excel created.

I attach an example



Attachment: XLSIO_602b04e5.zip

5 Replies

SS Sridhar Sukumar Syncfusion Team February 1, 2017 07:33 AM UTC

Hi Manolo,  

Files could not be downloaded (directly saving in client machine) using Ajax call
and so, we have provided a workaround by saving the Excel document in the disk and downloading it. Please find the sample in the below link.   
 
Sample link: 

Please let me know if you have any concern.
 

Regards,
Sridhar S.
 



MA Manolo February 1, 2017 08:51 AM UTC

Thanks, but another question.

How can I delete the file after download?

Thanks


SS Sridhar Sukumar Syncfusion Team February 2, 2017 10:46 AM UTC

Hi Manolo, 
 
Thank you for updating us. 
 
You can directly delete files from the disk using Delete() method in System.IO.File . Before deleting the file, you should extract the file content as a byte array and send that to download the file​​​. 
 
 
Please let me know if you have any concern. 
 
Regards, 
Sridhar S. 



MA Manolo February 3, 2017 01:56 PM UTC

Thanks a lot!


SS Sridhar Sukumar Syncfusion Team February 6, 2017 10:37 AM UTC

Hi Manolo, 
 
We are glad that your requirement is fulfilled. Please let us know if you need any further assistance. 
  
Regards, 
Sridhar S.

Loader.
Up arrow icon