Generating Excel documents with Ruby

时光怂恿深爱的人放手 提交于 2019-12-19 09:11:21

问题


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?


回答1:


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.




回答2:


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

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




回答3:


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




回答4:


I have come across the gem simple_xlsx_writer.

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

Hope it helps.



来源:https://stackoverflow.com/questions/2227973/generating-excel-documents-with-ruby

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!