printing from Word using win32com
Syver Enstad
syver-en+usenet at online.no
Wed Jan 2 17:59:57 EST 2002
fbartlet at wiley.com (Frederick H. Bartlett) writes:
> Mark Hammond <mhammond at skippinet.com.au> wrote in message
> news:<3C32AC2E.3030704 at skippinet.com.au>...
> Thanks for the response. But item.encode('latin-1') gives me
> AttributeError: <unknown>.encode
> so I must not have a COM string. But if it's not a COM string, what
> could it be? Python's print will work so long as the object contains
> only 7-bit characters.
Just of the top of my head, often you'll have to write .Value when
dealing with com objects. Try it.
--
Vennlig hilsen
Syver Enstad
More information about the Python-list
mailing list