加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

哪个宝石支持在ruby中导入/导出到xlsx文件

发布时间:2020-12-16 20:17:55 所属栏目:百科 来源:网络整理
导读:我需要用 ruby代码来读写Excelx文件, 试用电子表格不支持xlsx格式, Roo也读取文件,不写入xlsx. 有没有任何宝石/插件将写入Excelx? 解决方法 对于编写/导出xlsx文件的任务,Axlsx是我发现的功能最完整的库.不过,它不支持读取/导入xlsx文件. https://github.co
我需要用 ruby代码来读写Excelx文件,
试用电子表格不支持xlsx格式,
Roo也读取文件,不写入xlsx.

有没有任何宝石/插件将写入Excelx?

解决方法

对于编写/导出xlsx文件的任务,Axlsx是我发现的功能最完整的库.不过,它不支持读取/导入xlsx文件.

https://github.com/randym/axlsx

以下是作者的描述:

xlsx generation with charts,images,automated column width,customizable styles and full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification. Check out the README for some examples of how easy it is. Best of all,you can validate your xlsx file before serialization so you know for sure that anything generated is going to load on your client’s machine.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读