fjsen
asked on
Custom document properties in office
Hello:
How can access to the custom document properties of an excel document from VC++.
Thanks,
Jose.
How can access to the custom document properties of an excel document from VC++.
Thanks,
Jose.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm using smart pointers and there is an smart pointer called DocumentPropertiesPtr but I don't know how to use it. When I try this:
DocumentPropertiesPtr p= pWorkBook->CustomDocumentP roperties;
it returns a NULL pointer.
But if i try this:
DispatchPtr p= pWorkBook->CustomDocumentP roperties;
it works fine, but I must access to methods and properties via IDispatch interface and its horrible.
Thanks.
DocumentPropertiesPtr p= pWorkBook->CustomDocumentP
it returns a NULL pointer.
But if i try this:
DispatchPtr p= pWorkBook->CustomDocumentP
it works fine, but I must access to methods and properties via IDispatch interface and its horrible.
Thanks.
Have you looked into Excel Automation?
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q179706
I'm researching...