which version of POI? Please try with the latest 3.8-beta4, there have
been improvements in column autosizing recently.

Yegor

On Thu, Sep 1, 2011 at 11:51 PM, Ian <[email protected]> wrote:
> When I attempt to use the autoSizeColumn on a column that contains a lot of 
> text
> I get the following error.
>
> Is this a known bug?
>
> -------------------------------------------------------------------------
>
> The maximum column width for an individual cell is 255 characters.
> java.lang.IllegalArgumentException: The maximum column width for an individual
> cell is 255 characters.
>        at 
> org.apache.poi.hssf.model.InternalSheet.setColumnWidth(InternalSheet.java)
>        at 
> org.apache.poi.hssf.usermodel.HSSFSheet.setColumnWidth(HSSFSheet.java)
>        at 
> org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java)
>        at 
> org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java)
>
> ------------------------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to