How to add and update a document property of a document

S

Sandeep Sharma

Hi,
I have defined some custom property field (using File-
Property-> custom tab)in word 2000 so that whenever i
create a document using it, i get all the property fields
in the document.
Now thru a c# program, I want to get all the custom
defined property of that document, add some of them in the
document and update them.
Help to achieve the same.

Any help is greatly appreciated.

Sandeep
 
J

Jonathan West

Hi Sandeep

The document properties can be read and updated without having to open the
document in Word.

The following article includes a link to some VBA code which reads document
properties, and includes a link to the location on the Microsoft website
where you can download the activeX DLL which can be used for the purpose.
Hopefully you should be able to adapt the relevant code to C#.

Getting access to the Document Properties of a Word file
http://word.mvps.org/FAQs/MacrosVBA/DSOFile.htm
 

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