[python-win32] Excel / Word: setting properties
Tim Roberts
timr at probo.com
Fri Mar 2 03:12:35 EST 2018
On Mar 2, 2018, at 12:07 AM, Niemann, Hartmut <hartmut.niemann at siemens.com> wrote:
>
> print ('%r' % workbook.BuiltinDocumentProperties)
>
> gives me
>
> <COMObject <unknown>>
>
> What can I do with such an object?
Are you checking the Word object model? The BuiltinDocumetProperties method returns a DocumentProperties object. I believe that is a collection of DocumentProperty objects. So you should be able to say something like
for prop in workbook.BuiltinDocumentProperties:
—
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180302/4a219daa/attachment.html>
More information about the python-win32
mailing list