How to set auto width of Excel columns using axlsx gem in Ruby on rails
0 Is there a way to set the column width to adjust based on the text length for all the columns in an excel (that is generated using the axlsx gem in Ruby on rails)? Please help! ruby-on-rails excel axlsx share | improve this question asked Nov 11 at 16:02 Biju 92 8 Can you share what code you have so far? – Sid Nov 11 at 16:03 ws.column_widths 7.2, nil, 3 can be parameterized. – Sid Nov 11 at 16:05 Setting ws.column_widths to nil will make the widths auto adjustable? – Biju Nov 11 at 17:56 No it won't. Need to figure out from that API – Sid Nov 11 at 18:15 add a comment | 0 Is there a way to set the column width to adjust based on the text length for all the columns in an excel (that is generated using the axlsx gem in Ruby on rails)? Please help! ruby-on-rails excel axlsx share | improve this question ...