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: (e-mail address removed)
 
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
:)
 
P

Paolo F. Cantoni

Thanks Cindy... That much will do...
Regards,
Paolo Cantoni
Tel: +61 8 9291 3137 Cell: +61 416 11 00 95
Email: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top