[python-win32] UnicodeEncodingError when print a doc file

Tom Hawkins Tom.Hawkins at innospecinc.com
Wed Jun 15 16:30:32 CEST 2011


By 'manually' I mean choosing the File->Save As menu item and changing
'Save as type' to Plain Text.

 

I'm not familiar with how to automate it directly from Python, but in
Word VBA you would use something like:

 

    ActiveDocument.SaveAs FileName:="myfile.txt",
FileFormat:=wdFormatText

 

 

Again these examples are for Word 2003.

 

PS Profuse apologies for quoting the entire digest in my last message!

 

   Tom Hawkins

Principal Scientist

Innospec Inc

Tel: +44 (0)151 356 6197

Fax: +44 (0)151 356 6112

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20110615/469a1836/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 791 bytes
Desc: image001.jpg
URL: <http://mail.python.org/pipermail/python-win32/attachments/20110615/469a1836/attachment.jpg>


More information about the python-win32 mailing list