5

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.

jordiburgos
  • 5,363
  • 3
  • 45
  • 73
paweloque
  • 17,890
  • 25
  • 77
  • 135

2 Answers2

1

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 !

0

Maybe you can take a look here : how to generate Excel through Javascript I've already used the php library phpExcel and it's working pretty good and very simple to use !

Community
  • 1
  • 1
Ko2r
  • 1,309
  • 10
  • 24
  • 1
    I'm really looking for a js-side generation. I only have a static file delivered and data that I want to export, that's why server-side is not an option. – paweloque Feb 22 '14 at 16:23