Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Library to generate excel files

I'm looking for a library to generate excel files. It is not just about outputting csv, or some rows, but about a library which would also make easier to do some basic formatting like header rows, changing colors and font size.

There are many excel generation libraries for the server, but I cannot find anything more than some examples on how to write it myself. There is a library going in this direction: https://jordiburgos.com/post/2017/excellentexport-javascript-export-to-excel-csv.html But it's more for generating excel based on tables in HTML. And in addition, it doesn't cover more advanced topics like those I mentioned.

like image 820
paweloque Avatar asked Nov 10 '22 12:11

paweloque


1 Answers

I was with this same problem and I tried something and saw that the excel generated didn't accept CSS to format the columns or rows. Then I used html tags to format the columns or rows and it worked. My excel was formatted !

like image 52
Leonardo Rios Avatar answered Nov 14 '22 22:11

Leonardo Rios