https://issues.apache.org/bugzilla/show_bug.cgi?id=47490
Summary: HSSFDataFormatter.createFormat(double,int,string) does
not handle '@' format
Product: POI
Version: 3.2-FINAL
Platform: PC
OS/Version: Windows Server 2003
Status: NEW
Severity: major
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
This method contains the following code at the end:
// TODO - when does this occur?
return null;
The answer is that this occurs whenever a numeric cell is given "Text" format
(format string '@') in Excel. Returning null at this point results in the
value being formatted with the default numeric format (a decimal place) even
though the value displayed in Excel is an integer.
I would contribute a patch but don't yet understand enough of the framework to
know the best way to fix this.
--
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]