poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thorsten Bux" <Thorsten...@gmx.de>
Subject Re: Error in methode sheet.getColumnWidth(0)?
Date Tue, 16 Sep 2008 09:03:38 GMT

-------- Original-Nachricht --------
> Datum: Tue, 16 Sep 2008 14:46:31 +1000
> Von: Daniel Noll <daniel@nuix.com>
> An: POI Users List <user@poi.apache.org>
> Betreff: Re: Error in methode sheet.getColumnWidth(0)?

> Thorsten Bux wrote:
> > Hi,
> > 
> > actually I really need this method to work. So can you tell me when
> > the problem would be fixed or if there is any workaround.
> 
> Assuming you've filed the bug already (one wouldn't expect it to be 
> fixed *before* the bug report is filed), as usual with open source the 
> quickest way to get something fixed is to fix it yourself and submit the 
> patch.
> 
> I'll give you a start though, as Nick was more than likely right:
> 
>    - ColumnInfoRecord, make field_3_col_width an int and make
>      getColumnWidth() return int.  (Have it read as a UInt16.)
>    - Sheet.getColumnWidth, make that return int also, and use int for
>      retval
>    - HSSFSheet.getColumnWidth, make that return int also.
> 
> HTH
> 
> Daniel
> 
> PS: surely the workaround is to add 65536 if it returns a
>      negative number.
> 
> 
> 
> -- 
> Daniel Noll
> 

Hi,

thanks for your help. I already recorded this bug.
Actually I have no idea how to fix that problem on my own. But the workaround by adding 65536
to the negative number seams to work fine.

Best regards
Thorsten
-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Mime
View raw message