x[0].MergeCells(0,0, 5,0);
x[0].Cell[0,0].FontStyle := [xfsBold];
x[0].Cell[0,0].FontSize := 12;
x[0].Cell[0,0].HorizAlignment := chaCenter;
x[0].AsString[0,0] := 'very very very very very very very very very very very very very very very very long text';
x[0].AutoHeightRow(0);
1. Your text is only one line of text.
2. If you want a text to fit to the width of a column you must set: XLS[0].Cell[0,0].WrapText := True;
3. AutoRowHeight don't work with wrapped text.
Yes, my text has only one line of text.
OK, I can set in Excel "TextWrap" and increase RowHeight manualy, but it isn't what I need! There are too many such cells in output file (((
Why AutoRowHeight doesn't work with wrapped text?