This project has moved and is read-only. For the latest updates, please go here.

Rows - AdjustToContents not working

Jan 17, 2012 at 11:00 PM

I've got cells that have content longer than their width and have done c.Style.Alignment.SetWrapText(true);

The content seems to wrap ok, but when I try to adjust the row heights with  ws.Rows(2, 999).AdjustToContents(); the height of the rows do not increase to accommodate the wrapped text. 

Am I doing something wrong ? I'm trying to get each row (except for the header row) to resize it's height so that all text will display.

thanks in advance - great library !

Jan 19, 2012 at 3:22 AM

Fixed. Pick up the latest source code.

Thanks for the feedback.

Mar 1, 2012 at 7:12 AM

Still no luck with ws.Rows().AdjustToContents() - row height does not change. 

I've picked up the latest code a few times and rebuilt - last time was today.

I'll see if I can create an issue and upload my generated spreadsheet.