xlsx.SetColumnWidth(id, col, width[, sheet])
col
to width
. Column indices start
at 1. The width is specified in font units of the normal display font and can be a fractional
value. Optionally, you can also pass the index of the worksheet to use in the optional sheet
parameter (starting from 1 for the first worksheet). If the sheet
parameter is omitted, the
worksheet set by xlsx.SetDefaultSheet() will be used.
xlsx.SetColumnWidth(1, 1, 8.43)The code above sets the width of the first column to 8.43.