Please excuse if this question has been asked previously, I did search but
couldn't find anything. 

I want to use com for Excel to access DocumentProperties. Microsoft Office
12.0 Object Library contains the definitions for this.

If I now generate the Python Wrapper File (not sure what the correct name
would be) either with
python makepy.py -v "Microsoft Excel 12.0 Object Library" 
or by having gencache.EnsureModule('{2DF8D04C-5BFA-101B-BDE5-00AA0044DE52}',
0, 2, 4) within the code.

The file does contain some properties descriptions like

class DocumentProperty(DispatchBaseClass):
        CLSID = IID('{2DF8D04E-5BFA-101B-BDE5-00AA0044DE52}')
        coclass_clsid = None
        _prop_map_get_ = {
                "Application": (1610743820, 2, (3, 0), ((16393, 10),), 
"Application",
None),
                "Creator": (1610743821, 2, (3, 0), ((16387, 10),), "Creator", 
None),
                "LinkSource": (7, 2, (3, 0), ((16392, 10),), "LinkSource", 
None),
                "LinkToContent": (6, 2, (3, 0), ((16395, 10),), 
"LinkToContent", None),
                "Parent": (1, 2, (9, 0), (), "Parent", None),
        }

but the ones like Name or Value usable for access are missing. If I use the
Python Object Browser from PythonWin to view the object within Microsoft
Office 12.0 Object Library I see there these properties defined.

Using data from the Browser to manually insert additional entries like 
                "Name": (3, 2, (9, 0), (), "Name", None),
                "Value": (0, 2, (9, 0), (), "Value", None),
to _prop_map_get_ makes it work.

Is there a argument to force the generation of these prop entries or
whatelse do I wrong.

Thank you in advance for any sugestion,

BR

Günter
-- 
View this message in context: 
http://old.nabble.com/gakepy---genpy-don%27t-collect-all-methods-attributes-tp30145729p30145729.html
Sent from the Python - python-win32 mailing list archive at Nabble.com.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to