octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47815] io package, OCT interface: xls2oct fai


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #47815] io package, OCT interface: xls2oct fails reading formula results
Date: Sun, 01 May 2016 10:53:14 +0000
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

Update of bug #47815 (project octave):

                  Status:                    None => Need Info              
             Assigned to:                    None => philipnienhuis         
                 Release:                   4.0.1 => other                  
                 Summary: io package, OCT interface: xls2oct fails => io
package, OCT interface: xls2oct fails reading formula results

    _______________________________________________________

Follow-up Comment #1:

I tend to close this bug report with "Invalid" or "Won't fix", but before that
you can enlighten me a bit.

How did you create the last version of test1.xlsx ? Did you add the formula
using the OCT interface?

Let me explain:

Exploring the spreadsheet file using LibreOffice I find that the offending
cell contains a formula merely referencing another cell. That other cell again
contains a (more complicated) formula.

That makes me wonder whether you entered the formula as a text string with the
OCT interface. 
The OCT interface does not contain a formula evaluator (nor a formula
validator), so if you use that to enter or change a formula, the (cached)
value in the XML cell will not be updated, and in case of new cell contents it
will not even initialized. 
FYI it is those cached formula result values that are read (unless you specify
to read the formulas themselves).

Sure enough, after I read & saved the file with LibreOffice, your script
worked fine and cell B232 correctly contained the value 234.

The only spreadsheet interfaces with formula validators and -evaluators are:
* UNO (invoking LibreOffice / OpenOffice.org behind the scenes)
* COM (invoking Excel behind the scenes)
* Apache POI (Java based). I'm unsure if this one really works well; it did to
some extent at the time I wrote io package's POI interface 7 years ago but for
various reasons I'd rather invoke LibreOffice for the job.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47815>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]