1,911 questions
-1
votes
0
answers
43
views
Windows 11: IInitializeWithFile::Initialize Called Multiple Times Causing File Explorer Crash (Works Fine in Windows 10)
I'm developing a Windows Shell Extension that interacts with the File Explorer Preview Pane. The goal is to block file previews under certain conditions for files in a synced folder (like from a cloud ...
1
vote
1
answer
15
views
Issues with printing docx using win32com pyhon
Im running a simple app in python that is supposed to print a set number of pages from a document im working on. The document is 8 pages long but using
doc = word.Documents.Open(abs_docx_path)
doc....
-1
votes
0
answers
74
views
How to solve Python error?: pywintypes.com_error exception that I use for changing the location an excel file
I have this code that I used to convert an excel file ( .xls) to (.xlsx) and edit it and save it to another location. It used to work perfectly but just now I encounter some Error with the xlmain11....
0
votes
0
answers
38
views
Unblock file programmatically that is created via win32com.client in Python on Windows
I am creating programmatically a shortcut using win32com.client.
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
shortcut = shell.CreateShortCut("foo.lnk")...
0
votes
0
answers
41
views
No module named 'pywintypes'; seemingly problem with virtual environment
I've read through all the relevant posts to this question, but sadly most remain unanswered, or don't seem to apply to my specific situation.
I want to use the win32com module, which is part of the ...
0
votes
1
answer
55
views
HTMLBody does not compile in Python when generating an Outlook email
I am writing a Python module to generate an outlook e-mail with an attachment using win32com. All works fine except for the formatting of the HTMLBody. As far as I have researched, it is
impossible to ...
0
votes
0
answers
14
views
Discrepancy in Win32com Word Application output and GUI output
I am using win32com to extract a Word document Flesch score directly instead of through the editor, because I would like to automate and store in bulk all the Flesch scores for multiple Word documents....
0
votes
0
answers
30
views
passing custom variable type to COM object with python
I am trying to create a program in python to pull file histories from a SolidWorks PDM Professional vault, and the method call for retrieving a files history requires passing an empty array of type '...
0
votes
0
answers
78
views
Python flask API to convert DOCX to PDF
I created a Python Flask API to convert DOCX files to PDF. It works perfectly when I start it manually via the command line. However, I’d like to turn it into a Windows service so that it can start ...
0
votes
0
answers
29
views
Error received when CC recipients are added in win32com using python
I want to send automated mails from my outlook to some email addresses using python win32com.
This is the code I am using -
def Emailer(text, subject, recipient):
import win32com.client as win32
...
2
votes
0
answers
103
views
PyWin32 throws "pywintypes com_error call was rejected" error, but only when NOT running from CMD
System setups:
Development PC: Win 10,Python 3.7.7, PyInstaller 5.3.12
Deployment PC: Win11, No Python installled
I've made a CLI python script (running from Windows CMD) with the following simple ...
0
votes
0
answers
39
views
How to Get the Selected File Path from a File Dialog in Windows Using Python?
To implement a file preview feature similar to Quick Look on Windows, there are a few existing tools, each with their own issues:
QuickLook: Slow file preview, occasional crashes, and lack of ...
0
votes
0
answers
20
views
How to deal with Pop-Ups during doc to docx/xls to xlsx conversions using win32
While converting a large number of old MS office documents, Pop-Ups asking for document passwords, permission to save a file without macros, or hinting that files contain comments or revisions occur ...
0
votes
1
answer
45
views
Duplicates in outlook GAL (python)
Would anyone be able to help me with this issue? I'm making an App that looks in a GAL (global address list) in Outlook and finds the EX-user and stuff, I have that working and all but when I am ...
1
vote
1
answer
46
views
Python script to generate powerdesigner reports for all open models within a workspace
I am trying to automate the creation of powerdesigner data model reports on multiple physical models in an active workspace using Python- more using the specifically the win32com module. I'm fairly ...