comtypes icon indicating copy to clipboard operation
comtypes copied to clipboard

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.

Results 157 comtypes issues
Sort by recently updated
recently updated
newest added

Hi, I'm using comtypes with to try and call a function that uses reference parameters. The method I'm trying is passing all of the parameters with a value and trying...

question

Any ideas how to speed up SaveAs to a PDF file on Word? ```python word = comtypes.client.CreateObject("Word.Application") word.Visible = False doc = word.Documents.Open(sys.argv[1], ReadOnly=True) doc.SaveAs(sys.argv[2], FileFormat=17) doc.Close(SaveChanges=0) word.Quit() ``` This...

3rd-party issue

Hi I have a similar issue to this one (comtypes 1.1.7): https://github.com/enthought/comtypes/issues/129 My code snippet is import comtypes.client ppFormatPDF = 32 for fname in ["test1", "test2"]: in_file = fname +...

3rd-party issue

without the zip_safe set to False when setuptools installs the library either using easy_install, setup_requires or install_requires these warnings get produced. The issue lies in the use of a CI...

It is work on my laptop but not work on my office desktop both of them using word 2007 please help code is : ``` docxfilepath = os.path.join(CURRENT_DIR,filename) doc.save(docxfilepath) wdFormatPDF...

I've been using comtypes successfully for years, but for the first time I'm calling a method that has an optional output parameter. Here's the code generated by comtypes: COMMETHOD([helpstring(u'Returns the...

I'm running this script below. When I run it the first time, it should create a new instance of a program. When I run it a second time, it should...

I'm experiencing IndexError when using `GetModule(filename)` together with `gen_dir=None`. Sample code to reproduce: ``` import comtypes.client comtypes.client.gen_dir = None #comtypes.gen.__path__ = [''] # work-around for crash tlb = comtypes.client.GetModule(tlbfile) #...

help wanted

Hello, I've had few problems with comtypes recently: second problem was more intriguing: my object was working in dynamic dispatch mode, but not with specified interface, I got seemingly random...

`import sys import os import comtypes.client import pythoncom import uuid import requests from docx import Document import base64 from os import listdir from os.path import isfile, join import azure.functions as...