I apologize for posting before reading the archives.  It's my understanding that 
there is no all-in-one way of doing this using the POI HSSF API.  Please let me 
know if this is not true.

I suppose I will explicitly size each column in my code at runtime once all of 
the cells in the sheet are populated with data.

thanks...
Hernan

On Wed, 24 Sep 2003, Hernan Silberman wrote:

> 
> First of all, I've been using POI for a few weeks now and I love it!
> 
> In Excel, I can select a region and do Format->Row->Autofix to automatically 
> resize columns to conform to the widest cell value in the column.
> 
> I see how I can possibly do this by keeping track of the cell widths when I 
> generate the sheet and then using HSSFSheet->setColumnWidth(col,width),
> but I was wondering if there's an easier and more elegant way of doing it.
> 
> Any insight would be much appreciated.
> 
> thanks...
> Hernan Silberman
> 
> 

-- 
Hernan Silberman
PDI/Dreamworks
ext.29162 / 650-562-9162 / cell 415-810-5809
text pager: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to