Grasshopper

algorithmic modeling for Rhino

Hi everybody,

With a friend, we are trying to deal with the connection between excel and GH. 
We followed this tutorial on youtube: https://www.youtube.com/watch?v=7Cb4NuF2wcw
(thx Damien)

When we tried at home it worked with excel 2003. Unfortunatly, at my office we only have excel 2007 and we get the following result:

Error:  old format or the library type is not valide. (exception HRESULT: 0x80028018 (TYPE_E_INVDATAREAD)) (line:0)
(I tranlsated from french)

We tried to change :

xlApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application")

by

xlApp = Marshal.GetActiveObject("Excel.Application")

But it doesn't work

It seems that it comes from the region setting and the language used by the software. This explanation was found on microsoft forum but we did not find the solution.

Does anybody has a clue to solve this problem but still in GH?

thx in advance


Views: 2140

Replies to This Discussion

Hi I'm having same problems (old format or the library type is not valide. (exception HRESULT: 0x80028018 (TYPE_E_INVDATAREAD)) trying to work with this def here http://lmnts.lmnarchitects.com/?p=375
any ideas how to solve the problem.must be something about the language settings from windows..?I'cant write script components, i just use them :) so I'm stuck
Ivan, I've uploaded a new version of the definition to the website. See if it solves the problems.
nice
i'll give it a try!
thx

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service