How can I export Excel files using JavaScript?

Viewed 182823

Is there any way to generate Excel/CSV through Javascript? (It should be browser compaatible too)

5 Answers

Create an AJAX postback method which writes a CSV file to your webserver and returns the url.. Set a hidden IFrame in the browser to the location of the CSV file on the server.

Your user will then be presented with the CSV download link.

Related