How to generate excel in javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to generate excel in javascript

I want to generate excel files with random data using javascript. Any links/pointers that you can share? The idea would be to have a few arrays with different kinds of data and to basically generate excel files populated with that data randomly based on user input

14th Jan 2019, 7:17 PM
ioan
1 Answer
+ 1
Found this on stackoverflow: https://stackoverflow.com/questions/333537/how-to-generate-excel-through-javascript Most of the posts there are quite old and probably outdated. The easiest way would be to generate CSV files if that suits your need. Excel is more complicated and you will most likely need to find some special library that supports it. An XLSX file is basically a specially formatted XML. Try just saving a blank xlsx in Excel, and open it in a text editor. Then you can guess what the result should look like and how difficult it would be to build it.
14th Jan 2019, 9:24 PM
Tibor Santa
Tibor Santa - avatar