resizing cells in Spreadsheet/Excel

Hi,

I'm working on an application that generates excel sheet. I would like resize cells so that it contains long contents. I'm using spreadsheet/excel.

How can I do this?