Dec-25-2016, 09:45 PM
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-pytho.../#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.
I tried to work with examples from Galal Aly's blog at http://new.galalaly.me/2011/09/use-pytho.../#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.