lua-users home
lua-l archive

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


On 25 December 2016 at 09:25, luciano de souza <luchyanus@gmail.com> wrote:
> Hello all,
> I want to deal with Excel or Libreoffice files.
> I found the package xlsxwriter, available as a rock.
> But I could not find something to read a xls, xlsx or ods files. I am
> in Linux, so I can't use luacom. I have few experience, so perhaps to
> understand the xml structure of a xlsx file would not be viable.
> Regarding this aspects, what do you think it's the best approach for me?

If you only want to extract the data, you can use LibreOffice in
headless mode and use it to convert xlsx to an easier-to-parse format
such as csv. Type `scalc --help` for more details (check out the
--convert-to option).

-- Hisham