Bug 25496

Summary: HSSFSheet.getDefaultColumnWidth bug
Product: POI Reporter: macaw zhang <gheorghe_zhang>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 1.5.1   
Target Milestone: ---   
Hardware: All   
OS: other   

Description macaw zhang 2003-12-13 08:10:23 UTC
The return value of HSSFSheet.getDefaultColumnWidth is 8.
According the document "get the width (in units of 1/256th of a character 
width ) ", it should be 8*256=2048.
Comment 1 macaw zhang 2003-12-13 09:05:18 UTC
The return value of HSSFSheet.getDefaultColumnWidth is 8.
According the document "get the width (in units of 1/256th of a character 
width ) ", it should be 8*256=2048.
Comment 2 Yegor Kozlov 2008-04-02 03:27:34 UTC
HSSFSheet.getDefaultColumnWidth() returns the width measured in characters.
HSSFSheet.getColumnWidth() returns the width in units of 1/256th of a character width.

Regards,
Yegor