[英]What's the easiest way to export a CSV to Excel with Ruby?
I'm using Ruby 1.9 for this.我为此使用 Ruby 1.9。 I need to convert Ruby arrays into a Excel spreadsheet document (xls).我需要将 Ruby arrays 转换为 Excel 电子表格文档 (xls)。
I use two gems to export to Excel-readable formats: Spreadsheet (can create/parse.xls) and FasterCSV (faster, but as far as I can remember doesn't work with.xls files)我使用两个 gem 导出为 Excel 可读格式:电子表格(可以创建/解析.xls)和FasterCSV (更快,但据我记得不适用于 .xls 文件)
I've had excellent results with WriteExcel (which is a Ruby port of a Perl library of the same name).我使用WriteExcel (它是同名的 Perl 库的 Ruby 端口)取得了出色的成绩。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.