About 50 results
Open links in new tab
  1. python - Using pywin32, what is the difference between Dispatch and ...

    Sep 6, 2013 · 17 It depends on what you want. If Excel is already open, using dispatch will create a new tab in the open Excel instance. If Excel is already open, using dispatchEx will open a new instance of …

  2. win32com - win32.Dispatch vs win32.gencache in Python. What are the ...

    May 2, 2018 · Now, if you try again in a new console using Dispatch, you will get the exact same result. Indeed, after using EnsureDispatch, the folder created before in win32com\gen_py still exists and …

  3. python - What is stopping win32.Dispatch () from opening Microsoft ...

    May 12, 2022 · outlook = win32.Dispatch('Outlook.Application') If Outlook can't be instantiated this way then its windows registry keys were corrupted. I'd recommend repairing MS Office or Outlook to get …

  4. What exactly does win32com.client.Dispatch ("WScript.Shell")?

    May 6, 2014 · import win32com.client xl = win32com.client.Dispatch("Excel.Application") (from this) The WScript.Shell object provides functions to read system information and environment variables, work …

  5. python - win32com.client.Dispatch ("Outlook.Application") error ...

    Do you try to do from win32com.client import Dispatch Something = Dispatch("Outlook.Application") Then also you've try to assign it ?

  6. Clearly documented reading of emails functionality with python …

    import win32com.client outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI") 2. Navigate the …

  7. com_error: (-2147221005, 'Invalid class string', None, None)

    Jun 17, 2020 · Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the …

  8. python - pywin32 - Windows COM dispatch works as standalone script …

    Jan 15, 2025 · The application is installed on the server, and when using pywin32 to access it using COM this works as expected in a simple Python script. However, when starting a Windows Service …

  9. Python client.Dispatch ("outlook.application") fails in specific case ...

    May 8, 2022 · s = client.Dispatch("Mapi.Session") It seems there is no need to create a new MAPI session in the code if you automate Outlook. Second, the Send method may trigger a security issue …

  10. python win32 COM closing excel workbook - Stack Overflow

    Jun 15, 2011 · xl = Dispatch("Excel.Application") xl.Visible = False try: output = xl.Workbooks.Open(workbookName) output2 = xl.Workbooks.Open(workbook2Name) except …