change the title property

N

neoret

Hello.

My application adds functionality to word so that the user can archive
his document by clicking an archive button. When archiving the user has
to fill out some information (cateory, folder, comments etc). This
information is stored in the properties of the document. This is ok.

My challenge is when I try to open such a document again. I need the
information in the properties of the document to be unchanged. What
happends is that word set the title property when opening the document.
Word uses the first words in the document.

The way I see it there are two solutions to my problem:
- Make word NOT change the titlefield if it has values -> I don't know
how to do this. Any suggestions?
- Make my application set the title property back to what it as after
word has changed it -> I then need to know when word is finished doing
its tasks -> I don't know how to do this. Any suggestions?

I'll be happy for any answers or tips that you might have :)
 
C

Cindy M.

My application adds functionality to word so that the user can archive
his document by clicking an archive button. When archiving the user has
to fill out some information (cateory, folder, comments etc). This
information is stored in the properties of the document. This is ok.

My challenge is when I try to open such a document again. I need the
information in the properties of the document to be unchanged. What
happends is that word set the title property when opening the document.
Word uses the first words in the document.

The way I see it there are two solutions to my problem:
- Make word NOT change the titlefield if it has values -> I don't know
how to do this. Any suggestions?
- Make my application set the title property back to what it as after
word has changed it -> I then need to know when word is finished doing
its tasks -> I don't know how to do this. Any suggestions?

I'll be happy for any answers or tips that you might have :)
Please show us the code you use to set the Title property originally, and
tell use the version of Word involved.

Have you looked in File/Properties after this code has run (before
closing the document)? And after you open it?

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 :)
 

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