In Cpython, I can use win32com.
But, in ironpython, I didn’t know how to import it.
Because, in .net, one always use Visual Studio to interop the COM and to use it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to create an IDispatch object using:
This is equivalent to win32com.client.Dispatch(com_type_name).
If there’s a type lib you should be able to do:
I don’t know what that’s equivalent to. I’m not much of an expert on this but I took those from IronPython’s cominterop_util which is used in the tests. There’s more stuff in the IronPython\Tests\interop\com directory which might be useful.