Rameen Rastan
Rameen Rastan

Reputation: 143

How can I export my Arrays in JavaScript into a CSV or Excel file on IE11?

Assuming I have a 2D array named Data.

I need to use IE11 for this job.

Upvotes: 1

Views: 625

Answers (2)

Musa
Musa

Reputation: 97672

  • convert the array to the required cvs format as a string
  • convert the string to a blob
  • save the blob navigator.msSaveOrOpenBlob(blob, 'file.cvs');

Upvotes: 1

Kevin F
Kevin F

Reputation: 2885

You can use this library to create a file: https://github.com/eligrey/FileSaver.js/

Upvotes: 1

Related Questions