poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47490] New: HSSFDataFormatter.createFormat(double,int,string) does not handle '@' format
Date Tue, 07 Jul 2009 20:39:13 GMT
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: dev@poi.apache.org
        ReportedBy: jgarrison@troux.com


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message