使用Ruby将CSV导出到Excel最简单的方法是什么? [英] What's the easiest way to export a CSV to Excel with Ruby?

查看:167
本文介绍了使用Ruby将CSV导出到Excel最简单的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ruby 1.9。我需要将Ruby数组转换成Excel电子表格文档(xls)。

解决方案

我使用两个gem来导出到Excel可读格式:电子表格(可以创建/解析.xls)和 FasterCSV (更快,但据我记得,不能与.xls文件一起使用)


I'm using Ruby 1.9 for this. I need to convert Ruby arrays into a Excel spreadsheet document (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)

这篇关于使用Ruby将CSV导出到Excel最简单的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆