How to export Jexcel table to .csv and .xls?

1.5k Views Asked by At

I am using Angular 8 in the application and Jexcel 3.9 plugin for the table, am new to jexcel plugin & looking to export jexcel table to .csv and .xls

I am getting materials for import into the application but couldn't found on how to export jexcel table.

I tried following but it's not working somehow

jexcel(document.getElementById('tbl_id')).download();

Reference : https://bossanova.uk/jexcel/v2/docs/quick-reference

Any help is appreciated. Thanks in advance

1

There are 1 best solutions below

2
On

The correct way to do it: document.getElementById('tbl_id').jexcel.download();

Options in the most recent versions: https://jspreadsheet.com/v7/examples/exporting-to-xls