Page 1 of 1

AutoHeightRow

Posted: Mon Oct 20, 2014 1:14 pm
by markl
Hello!

Please, help me. How to set row height automaticaly depending on the cell content?
This code does not work on XLSReadWriteII v5.20.36 (((

Code: Select all

  
  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);

Re: AutoHeightRow

Posted: Tue Oct 21, 2014 9:04 am
by larsa
Hello

This will not work for the following reasons:

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.

Re: AutoHeightRow

Posted: Thu Oct 23, 2014 7:50 am
by markl
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?

Re: AutoHeightRow

Posted: Tue Oct 28, 2014 10:41 am
by markl
Can you answer me - why AutoRowHeight doesn't work with wrapped text?

Re: AutoHeightRow

Posted: Wed Oct 29, 2014 6:53 am
by larsa
Hello

It's not implemented.

Re: AutoHeightRow

Posted: Thu Oct 30, 2014 6:52 am
by markl
Can you implement this feature?

Re: AutoHeightRow

Posted: Fri Oct 31, 2014 8:26 am
by larsa
Hello

It will probably be implemented in the next major release.

Re: AutoHeightRow

Posted: Tue Nov 04, 2014 5:00 pm
by markl
Thank you!

Please, tell me when you plan to make next major release?