You will probably want to use clr.AddReference (rather than AddReferenceToFile) because the latter apparently requires a full path spec, and if you installed the PIAs using the provided file (O2003PIA.MSI) they end up in the GAC.
At 11:44 AM 2/9/2006, Weffers, H.T.G. wrote (in part)
I received a number of suggestions using 'regular' Python and using
PythonWin for Python2.4 and a number of received examples and
code snippets I got it working. Thank you.
Nevertheless, I also tried the suggestion on using IronPython with
'just' the PIAs. On a Microsoft WindowsXP platform running Microsoft
Office2003 I installed the PIAs according to the accompanying
documentation but this does not yield success:
>>> import clr
>>> clr.AddReferenceToFile("excel.dll")
results in
>>> RuntimeError: Could not add reference to assembly excel.dll
Suggestions are appreciated....
Sincerely yours,
Harold Weffers
[snip]
J. Merrill / Analytical Software Corp
_______________________________________________ users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
