Bug 50415

Summary: sheet.autoSizeColumn() uses formula text.
Product: POI Reporter: Clive Paterson <clive>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P2    
Version: 3.7-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Clive Paterson 2010-12-05 23:17:24 UTC
The HSSFSheet.autoSizeColumn() function is using the formula text (ie, C3+C5+C6+C7+C8+C9+C10) to derive a column width instead of inspecting the result of the formula to derive a column width.

Note: Only applies to cells using HSSFCell.setCellFormula().

TY
-Clive
Comment 1 Yegor Kozlov 2010-12-06 02:35:18 UTC
This was fixed in r1033005. Note, that the fix is not included in POI-3.7. You should try with the latest nightly build from here:

http://encore.torchbox.com/poi-cvs-build/

Yegor

*** This bug has been marked as a duplicate of bug 50211 ***