Question About Python & MS Word

This is the place for queries that don't fit in any of the other categories.

Question About Python & MS Word

Postby maestromandan » Wed Oct 16, 2013 1:58 pm

I'm trying to figure out whether Python is suitable for making a tool for moving text from one Word document to a new one automatically. I know Python can do all of the necessary functions, but it has to be able to read and write to .doc & .docx

Does anyone know if that's at all feasible? I've tried all the usual google avenues plus asking some friends, but they have been of little help. Attached is a rough flowchart outline.
Ingester diagram.jpg
Ingester diagram.jpg (178.41 KiB) Viewed 559 times
Posts: 1
Joined: Wed Oct 16, 2013 1:47 pm

Re: Question About Python & MS Word

Postby micseydel » Wed Oct 16, 2013 7:22 pm

I don't use Windows or MS products, but I would guess that you want to use win32com. I believe it gives you an API for interacting with MS Office. I could be wrong, but this might point you in the right direction.
Due to the reasons discussed here we will be moving to on October 1, 2016.

This forum will be locked down and no one will be able to post/edit/create threads, etc. here from thereafter. Please create an account at the new site to continue discussion.
User avatar
Posts: 3000
Joined: Tue Feb 12, 2013 2:18 am
Location: Mountain View, CA

Return to General Coding Help

Who is online

Users browsing this forum: No registered users and 7 guests