Python Forum
ISO working example of opening a Microsoft Word document through PyWin32
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ISO working example of opening a Microsoft Word document through PyWin32
#1
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.
Reply
#2
Use python-docx.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to summarize an article that is stored in a word document on your laptop? Mikedicenso87 2 660 Oct-06-2023, 12:07 PM
Last Post: Mikedicenso87
  Working with Excel and Word, Several Questions Regarding Find and Replace Brandon_Pickert 4 1,550 Feb-11-2023, 03:59 PM
Last Post: Brandon_Pickert
  How to find PyWin32 for Python 2.1.3 Paul_Newton 9 1,693 Nov-20-2022, 09:15 PM
Last Post: Paul_Newton
  Microsoft text phone verifying account cito 2 983 Jul-21-2022, 12:16 PM
Last Post: cito
  pywin32: Outlook connection ends with 'operation aborted' on one machine tstone 0 2,387 May-03-2022, 04:29 AM
Last Post: tstone
  pywin32 problems catlessness 0 1,224 Apr-01-2022, 01:04 PM
Last Post: catlessness
  error : "Microsoft Visual C++ 14.0 is required. " Even its installed Barak 4 4,007 Oct-13-2021, 10:39 PM
Last Post: Underscore
  pywin32 Illustrator Throwing Exception Error matthewsjc1 7 5,575 Aug-27-2021, 02:43 AM
Last Post: Larz60+
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 2,494 Aug-12-2021, 04:25 PM
Last Post: palladium
  How to read check boxes from word document srikanthpython 0 2,595 Mar-30-2021, 01:58 PM
Last Post: srikanthpython

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020