Python Forum
ISO working example of opening a Microsoft Word document through PyWin32 - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: ISO working example of opening a Microsoft Word document through PyWin32 (/thread-1337.html)



ISO working example of opening a Microsoft Word document through PyWin32 - Orthoducks - Dec-25-2016

I want to write a Python application that uses the PyWin32 library to manipulate Microsoft Word documents. Does anyone know a working example of that?

I tried to work with examples from Galal Aly's blog at http://new.galalaly.me/2011/09/use-python-to-parse-microsoft-word-documents-using-pywin32-library/#comments, but the first step (getting the Word.Application object) doesn't work; the function it calls (gencache in the win32 package) doesn't exist. The structure of PyWin32 as installed on my system is nothing like what the examples imply.

I'm working with the 64-bit version of Python 3.5 under Windows 7, and the corresponding version of PyWin32 from build 220, which I understand is the current build.


RE: ISO working example of opening a Microsoft Word document through PyWin32 - snippsat - Dec-25-2016

Use python-docx.