I am try to create a big excel 2010 with 30 columns and 1 million records with Apache poi latest. I am creating as describe in this link http://svn.apache.org/repos/asf/poi
sheet.autoSizeColumn(columnNumber) works. this will resize the column to the largest cell length.