Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1010239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:03:05+00:00 2026-05-16T09:03:05+00:00

In Cpython, I can use win32com. But, in ironpython, I didn’t know how to

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:03:06+00:00Added an answer on May 16, 2026 at 9:03 am

    You should be able to create an IDispatch object using:

    from System import Type, Activator
    Activator.CreateInstance(Type.GetTypeFromProgID(com_type_name))
    

    This is equivalent to win32com.client.Dispatch(com_type_name).

    If there’s a type lib you should be able to do:

    import clr
    import System
    typelib = clr.LoadTypeLibrary(System.Guid("00020905-0000-0000-C000-000000000046"))
    word = typelib.Word.Application()
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that ASM is basically the fastest one can get, but is what
I know it is possible to use Powershell from within IronPython, but is this
What can be done in Cpython that can not be done in IronPython?
How can we write a python (with CPython) binding to a Java library so
I have some IronPython code which makes use of XmlTextWriter which allows me to
Trying to install Cython so I can use openKinect Python wrapper. I downloaded Xcode
I'm aware that Jython and IronPython can run threads in parallel(to take advantage Multicore
I must use goto in Python. I found entrians goto but my Python implementation
PyPy's JIT can make Python code execute much faster than CPython. Are there a
Do CPython has something similar to .net c# PInvoke? For example I have some.dll

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.