javascript - How to set cell width when export .xlsx files with js-xlsx -
i trying set fixed column/cell width exported excel files js-xlsx.
edit:
here source of js-xlsx: https://github.com/sheetjs/js-xlsx
i found snippet the write test here https://github.com/sheetjs/js-xlsx/blob/master/tests/write.js#l14-l19
for quick reference, ws worksheet.
var wscols = [ {wch:6}, {wch:7}, {wch:10}, {wch:20} ]; ws['!cols'] = wscols; javascript node.js xlsx
No comments:
Post a Comment