Bug 43074 - HSSFSheet.getColumnWidth() works incorrectly.
Summary: HSSFSheet.getColumnWidth() works incorrectly.
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-FINAL
Hardware: All All
: P2 normal with 1 vote (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-09 07:35 UTC by Bina Prieto
Modified: 2008-04-02 03:24 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bina Prieto 2007-08-09 07:35:23 UTC
Try to use HSSFSheet.getColumnWidth() for any column with default column width.
Result is 8 because default column width is a width of 8 characters. But
HSSFSheet.getColumnWidth() should return number of 1/256 of character width as 
Java-doc treats.
So HSSFSheet.getColumnWidth() for column with default width should return 8 * 
256 = 2048.

EXPECTED: sheet.getColumnWidth(0) == 2048
OBSERVED: sheet.getColumnWidth(0) == 8