Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading data from Excel in Haskell

I would like to get data from .xls files without manually opening Excel. One possibility is to use COM automation.

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?

like image 806
jinkou2 jinkou2 Avatar asked Nov 03 '11 16:11

jinkou2 jinkou2


1 Answers

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.

like image 172
sclv Avatar answered Sep 21 '22 19:09

sclv