4

I need to generate Excel documents with Ruby (from Rails) on a Linux machine. I know of Spreadsheet::Excel, but it doesn't support formulas, and uses a pretty old format.

Is there any other option, not necessarily free or open source, that is a bit more powerful?

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
luca
  • 12,311
  • 15
  • 70
  • 103

4 Answers4

6

How about opening a spreadsheet (Spreadsheet::Excel) with the formulae already populated. Entering data into the referenced cells will cause them to display the result.

tsdbrown
  • 5,038
  • 3
  • 36
  • 40
3

How about https://github.com/randym/axlsx

This gem can easily generate spreadsheets in the OOXML format (Open Office XML)

Igor Ševo
  • 5,459
  • 3
  • 35
  • 80
1

I have come across the gem simple_xlsx_writer.

You can see the example of how to use it over here.

Hope it helps.

maniempire
  • 791
  • 11
  • 12
1

https://github.com/cxn03651/writeexcel/

fl00r
  • 82,987
  • 33
  • 217
  • 237