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 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 content

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) > Th

[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 = word.Documents