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 2013/08/09 17:59:10 UTC

[Bug 55396] New: Formula added before referenced sheet wipes out formula causes exceptions

https://issues.apache.org/bugzilla/show_bug.cgi?id=55396

            Bug ID: 55396
           Summary: Formula added before referenced sheet wipes out
                    formula causes exceptions
           Product: POI
           Version: 3.9
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: dev@poi.apache.org
          Reporter: ebyrob@gmail.com

Created attachment 30718
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30718&action=edit
java main() putting formula before sheet create

1) Create a workbook.
2) Add sheet "X"
3) Add cell formula at 0,0 "=2+Y!A1"
  --> getCellFormula() has lost "Y" sheet name
4) Evaluate cell's formula
  --> java.lang.IllegalArgumentException: Invalid sheetIndex: -1.

I'm not sure if this is by design, but it can make it difficult to write a
library that outputs formulas and sheets in a convenient order.  (sometimes
sheet may not exist, but it's a good time to add the formula anyways.  Excel
itself shows #VALUE on screen but doesn't wipe out the cell's formula which may
be restored by clicking.)

-- 
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 55396] Formula added before referenced sheet wipes out formula causes exceptions

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

ebyrob@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebyrob@gmail.com
                 OS|                            |All

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