Answer the question
In order to leave comments, you need to log in
How to set automatic column height in RoR in excel using axlsx gem?
There is a gem for generating excel: https://github.com/straydogstudio/axlsx_rails
So, if the cell is long and the width is defined, then the contents of this cell are not transferred to a new line,
but simply hidden behind the frame (with a pointer).
How to make it so that at a certain cell width, if the text is large,
then it will wrap to a new line and the height of the cell (and the whole line with it) will increase?
Answer the question
In order to leave comments, you need to log in
Unfortunately, so far without crutches in any way.
https://github.com/randym/axlsx/issues/69
Theoretically, you can count the maximum number of characters (words) in a line, and select the optimal line height by typing, but this will be the wildest crutch.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question