https://issues.apache.org/bugzilla/show_bug.cgi?id=47082
Summary: HSSFSheet autoSizeColumn method do not auto size
column perfectly when there is leading white spaces in
any cell
Product: POI
Version: 3.2-FINAL
Platform: PC
OS/Version: All
Status: NEW
Severity: major
Priority: P3
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=23532)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23532)
sample java file which demonstrates the issue
HSSFSheet autoSizeColumn method do not auto size column perfectly when there is
leading white spaces in any cell.
Suppose there is few leading whitespaces in cell, and when we call
autoSizeColumn on the particular column, we can see the generated excel do not
auto size perfectly. It looks like the autoSizeColumn method discards the
leading zeros in the text cell before finding the maximum width of each cell.
run the attached java code, which generates autoSizeColumn.xls, and see the
autosize is not perfect.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]