Extending Office Classes

P

Paolo F. Cantoni

Hi,'

I want to extend the Document class to add additional metadata about the document. How can I do this in Office 2000?

I could add CustomDocumentProperties but doesn't that make the file "dirty"? The metadata I need to add is transient and is not going to be persisted...

Is there a general pattern for extending the supplied classes?

TIA,
Paolo Cantoni
Tel: +61 8 9291 3137 Cell: +61 416 11 00 95
Email: [email protected]
 
C

Cindy M.

Hi Paolo,
I want to extend the Document class to add additional
metadata about the document. How can I do this in
Office 2000? I could add CustomDocumentProperties but
doesn't that make the file "dirty"? The metadata I need
to add is transient and is not going to be persisted...
Is there a general pattern for extending the supplied
classes?
The answer to this last question is no, the Office object
model wasn't designed to allow you to extend its classes.
And you can't associate anything with a document without
"dirtying" it. If the problem is the Save prompt the user
would see, then you can set the SAVED property of the
document to true after writing in the information.

Beyond that, I don't understand what it is you're trying to
accomplish, so it's difficult to offer suggestions.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
Top