从Excel Haskell中读取数据 [英] Reading data from Excel in Haskell
问题描述
我想获得.xls文件数据无需手动打开Excel。
一种可能性是使用COM自动化。
I would like to get data from .xls files without manually opening Excel. One possibility is to use COM automation.
有-1.2.3 和的 h直接包,但我不能找到如何使用这些包与Excel的例子。
There are the com-1.2.3 and hdirect packages, but I can't find any examples of how to use these packages with Excel.
有没有人有办法解决这个?
Does anyone have a solution for this?
推荐答案
通过这样的事情,如果你的需求是比较简单的,我发现,它更直接地找到/写命令行的可执行文件,只是翻出一张从xls文件CSV格式。然后调用从哈斯克尔的可执行文件,并从那里其产量继续。
With something like this, if your needs are relatively simple, I've found that it's more straightforward to find/write a command line executable that just pulls out a csv from the xls file. Then you invoke that executable from haskell, and proceed with its output from there.
这篇关于从Excel Haskell中读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!