Hi,
Please help me. How to set width for Columns for excel file export.
Thank you
How to set columns autofit
Hi,
I want to convert json to .xlsx format buffer (I guess I should use this). Then I want to set width of excel columns as well ! Is that feasible with the free version of this product ?
Kind Regards,
I also want to know the method
var wscols = [
{wch: 6}, // "characters"
{wpx: 50}, // "pixels"
,
{hidden: true} // hide column
];
ws['!cols'] = wscols;
like this
Please refer to the following link: https://github.com/SheetJS/js-xlsx/blob/master/tests/write.js#L14-L19
@fclemonschool answered the question :)
automatic cell width you can try to see it
https://github.com/dave-wind/excel
Most helpful comment
How to set columns autofit