[python-win32] read word contents including images and font format

2011-10-05 Thread Anthony Mpofu
Hi All I want to read contents from a word document (source) and insert the contents to the (destination) word document. I have used the following code: # Read content from source word = win32.gencache.EnsureDispatch('Word.Application') doc = word.Documents.Open(source.doc) data =

Re: [python-win32] read word contents including images and font format

2011-10-05 Thread Tim Roberts
Anthony Mpofu wrote: I want to read contents from a word document (source) and insert the contents to the (destination) word document. ... The above solution only copies the text content from the source document. The read contents loses the original formating (font size, font type) The read

Re: [python-win32] read word contents including images and font format

2011-10-05 Thread Waldemar Osuch
On Wed, Oct 5, 2011 at 10:30, Tim Roberts t...@probo.com wrote: Anthony Mpofu wrote: I want to read contents from a word document (source) and insert the contents to the (destination) word document. ... The above solution only copies the text content from the source document. The read