Bernard Kenik
10/16/2007 9:22:00 PM
On Oct 16, 11:30 am, mortee <mortee.li...@kavemalna.hu> wrote:
> Geeta Sachdeva wrote:
> > Does 'roo' gem also evaluate formulas? Because as I mentioned earlier, I
> > also need values of cells which have formulae, aslo some of the cells In
> > the excel refer to different excel files or different sheets in same
> > file.
>
> Roo's home page describes what it can do and what not.
>
> Basically, it states that for cells with formulae in OpenOffice files,
> it can return whatever value is saved in the document, without
> reevaluating anything. It also says that it doesn't handle formulas in
> Excel docs, without explaining whether it means that it can't
> recalculate the values just like with OOo, or it is unable to return any
> value at all.
>
> mortee
>From reading the rdoc for the roo gem
cell(excel)
cell(col,row)
returns the content of a cell. The upper left corner is (1,1) or ('A',
1)
I interpret this to mean that it will return the result of the
formula. This needs to be verified by you.
good luck.
It may be that microsoft office on the Mac does use COM objects. If
so, you should be able to use win32ole.
If you only want to read values from a sheet then win32ole would be an
overkill.