Free Support Forum - aspose.com

AutoFitRow() does not work properly

If I add the following text to a cell, and set the column width to 12, and the Style.IsTextWrapped property to true, calling worksheet.AutoFitRow() on that row does not stretch the row far enough to display all of the text. Why?

"XX - XXXXXXXX XXXXXXX XXXXXX XXX XXXXXXXX XXX XXXXXX XXXXXXXXX XXXXXX XXX"

Cheers,

Haydn

PS I’m using 1.8.1.0.

Dear Haydn

Thanks for your consideration.

This problem is caused by space characters in the string. If you replace space characters with other characters, you will found that AutoFitRow works well. I will fix this bug in next hotfix within one week.
Thanks for your patience.