We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

create excel from ajax

Thread ID:

Created:

Updated:

Platform:

Replies:

128597 Jan 31,2017 12:34 PM UTC Feb 6,2017 10:37 AM UTC ASP.NET MVC 5
loading
Tags: XlsIO
Manolo
Asked On January 31, 2017 12:34 PM UTC

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

Sridhar Sukumar [Syncfusion]
Replied On 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.
 


Manolo
Replied On February 1, 2017 08:51 AM UTC

Thanks, but another question.

How can I delete the file after download?

Thanks

Sridhar Sukumar [Syncfusion]
Replied On 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. 


Manolo
Replied On February 3, 2017 01:56 PM UTC

Thanks a lot!

Sridhar Sukumar [Syncfusion]
Replied On 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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;