NPOI AutoSizeColumn not resizing correctly
<p>I've put the .AutoSizeColumn right before the write Method</p>

<pre><code>int numberOfColumns = sheet.GetRow(rowcount - 1).PhysicalNumberOfCells;
for (int i = 0; i &lt;= numberOfColumns; i++)
{
    sheet.AutoSizeColumn(i);
    GC.Collect();
} 

using (var fileData = new FileStream(@"C:\Temp\Contatti.xlsx", FileMode.Create))
{
   wb.Write(fileData);
}
</code></pre>

<p><a href="http://i.stack.imgur.com/kjE7Q.png" rel="nofollow">this is an example of the result</a></p>