Re: [python-win32] Excel / Word: setting properties

2018-03-02 Thread Niemann, Hartmut
tps://siemens.com/ingenuityforlife> Von: python-win32 [mailto:python-win32-bounces+hartmut.niemann=siemens@python.org] Im Auftrag von Tim Roberts Gesendet: Freitag, 2. März 2018 09:13 An: Python-Win32 List Betreff: Re: [python-win32] Excel / Word: setting properties On Mar 2, 2018, at 12:07 AM, N

Re: [python-win32] Excel / Word: setting properties

2018-03-02 Thread Tim Roberts
On Mar 2, 2018, at 12:07 AM, Niemann, Hartmut wrote: > > print ('%r' % workbook.BuiltinDocumentProperties) > > gives me > > > > > What can I do with such an object? Are you checking the Word object model? The BuiltinDocumetProperties method returns a

Re: [python-win32] Excel / Word: setting properties

2018-03-02 Thread Niemann, Hartmut
018 18:20 An: Python-Win32 List Betreff: Re: [python-win32] Excel / Word: setting properties Niemann, Hartmut wrote: > >   > > How do I set the [Excel workbook] standard property "Keywords" to > "C_Restricted" and the user property "Document Confidentiality&

Re: [python-win32] Excel / Word: setting properties

2018-02-28 Thread Tim Roberts
Niemann, Hartmut wrote: > >   > > I create an excel document using the COM interface. > >   > > Now I need to set two properties to be compatible with a new company rule: > >   > > “[the tool] uses MS Office standard (‘Keyword’) and custom (‘Document > Confidentiality’) properties. so if your code

[python-win32] Excel / Word: setting properties

2018-02-28 Thread Niemann, Hartmut
Hi! I create an excel document using the COM interface. Now I need to set two properties to be compatible with a new company rule: "[the tool] uses MS Office standard ('Keyword') and custom ('Document Confidentiality') properties. so if your code is able to preset values to these properties