You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/05/06 07:15:59 UTC

[Bug 59433] New: Account special format not processed when value is 0 (zero)

https://bz.apache.org/bugzilla/show_bug.cgi?id=59433

            Bug ID: 59433
           Summary: Account special format not processed when value is 0
                    (zero)
           Product: POI
           Version: 3.14-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: cgh_chen@126.com

<c r="D7" s="25">
                <f>SUBTOTAL(9,D8:D14)</f>
                <v>0</v>
            </c>

<xf numFmtId="43" fontId="5" fillId="2" borderId="2" xfId="1"
applyNumberFormat="1" applyFont="1" applyFill="1" applyBorder="1">
            <alignment vertical="center"/>
        </xf>

<numFmt numFmtId="43" formatCode="_ * #,##0.00_ ;_ * \-#,##0.00_ ;_ *
&quot;-&quot;??_ ;_ @_ "/>

java:
sval = formatter.formatCellValue(cell, eval);
// sval = - 0  ver 3.14
// sval = 0.0  ver 3.13

-- 
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


[Bug 59433] Account special format not processed when value is 0 (zero)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59433

GuoHui Chen <cg...@126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from GuoHui Chen <cg...@126.com> ---
correct value should be:
 sval = - (Excel show)

-- 
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


[Bug 59433] Account special format not processed when value is 0 (zero)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59433

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #3 from Dominik Stadler <do...@gmx.at> ---
This is handled in bug #62242 as well and there a PR is already discussed, so
duplicating this one.

*** This bug has been marked as a duplicate of bug 62242 ***

-- 
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


[Bug 59433] Account special format not processed when value is 0 (zero)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59433

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
Can you provide a more self-contained code for reproducing this. Or the
Excel-file if you are working off of one built in another application. 

With only the pieces you provided it is quite hard to reproduce the problem.

-- 
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