Ruby:解析Excel 95-2003文件? [英] Ruby: Parse Excel 95-2003 files?

查看:194
本文介绍了Ruby:解析Excel 95-2003文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从Ruby读取Excel 97-2003文件?

Is there a way to read Excel 97-2003 files from Ruby?

背景

我正在使用Ruby Gem parseexcel - http:// raa .ruby-lang.org / project / parseexcel /
但它是perl模块的旧端口。它工作正常,但解析的最新格式是Excel 95.并且猜测什么? Excel 2007不会生成Excel 95格式。

I'm currently using the Ruby Gem parseexcel -- http://raa.ruby-lang.org/project/parseexcel/ But it is an old port of the perl module. It works fine, but the latest format it parses is Excel 95. And guess what? Excel 2007 will not produce the Excel 95 format.

John McNamara已经承担了Perl Excel解析器的维护者的职责,请参阅 http://metacpan.org/pod/Spreadsheet::ParseExcel 当前版本将解析Excel 95-2003文件。但是有没有一个端口到Ruby?

John McNamara has taken over duties as the maintainer for the Perl Excel parser, see http://metacpan.org/pod/Spreadsheet::ParseExcel The current version will parse Excel 95-2003 files. But is there a port to Ruby?

我的另一想法是构建一些Ruby到Perl的粘贴代码,以便使用Ruby中的Perl库本身。例如,请参阅什么是最好的方式将UTF8数据导出到Excel?

My other thought is to build some Ruby to Perl glue code to enable use of the Perl library itself from Ruby. Eg, see What's the best way to export UTF8 data into Excel?

(我认为编写胶合代码比输入解析器要快得多)。

(I think it would be much faster to write the glue code than to port the parser.)

谢谢,

Larry

推荐答案

我正在使用电子表格,给它一个镜头。

I'm using spreadsheet, give it a shot.

这篇关于Ruby:解析Excel 95-2003文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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