
Hi, what is currently the recommend way to interface with COM from haskell? I need to create an Excel Sheet and thus need to use Excel via COM. Günther

Hi,
what is currently the recommend way to interface with COM from haskell?
I need to create an Excel Sheet and thus need to use Excel via COM.
Günther You have the HDirect package, you need some tweaking to compile it with
Günther Schmidt пишет: the current GHC. I only have a professionnal access to a Windows box, so I have no time to work on an official patch. You may contact me by e-mail, and I'll send you my patched version of the library and some instruction on how to build something that should be workable. If you need to simply create and Excel Sheet, you may also try it using the new Microsoft XML format (it will only work with Office 2007, though) ; then you do not need COM. Sincerely yours, Fernand

On Mon, Aug 4, 2008 at 2:14 PM, Fernand
If you need to simply create and Excel Sheet, you may also try it using the new Microsoft XML format (it will only work with Office 2007, though) ; then you do not need COM.
Sincerely yours,
Fernand
Hi Fernand and Günther, A few month ago I wrote some haskell to parse an XML document and create an Excel XML document from the data. I just pasted the code here: http://hpaste.org/9381 I'm using Excel 2003 and it works with XML. Best regards, Olivier.

Ooops, I just realized that hpaste truncated my source file at 5k (it's 8k long). Unfortunately the Excel file creation code is in the truncated part of the file ;-) So if you are interested in getting the full source, just ask.

Hi Günther,
You can also consider the hscom library:
http://darcs.haskell.org/packages/hscom/
There is a simple demo that automates MS Agent. The library is not
completed but if you are interested only in controlling Excel via
automation it should provide what you need. I started hscom because I
was disappointed from HDirect while working on Visual Haskell. It
overcomes some problems and in addition it is designed to be more in
the style of the modern FFI library. The library is not under active
development but I can assist with simple fixes.
Regards,
Krasimir
On Mon, Aug 4, 2008 at 11:47 AM, GüŸnther Schmidt
Hi,
what is currently the recommend way to interface with COM from haskell?
I need to create an Excel Sheet and thus need to use Excel via COM.
Günther
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Fernand
-
Günther Schmidt
-
Krasimir Angelov
-
Olivier Boudry