I'm assuming you are trying to insert either the BuiltInDocumentProperties or CustomDocumentProperties into fields placed in a document.
The correct syntax to place DocumentProperties into document fields is - { DOCPROPERTY "Name"} - where "Name" is the name of either one of the BuiltInDocumentProperties or CustomDocumentProperties that you may have created.
E.G.
From the Insert menu:
select field...
from the Categories: list box choose Document Information
then from the Field Names: list box choose DocProperty
In the textbox below both list boxes enter the name of the field desired enclosed in quotes.
i.e. "Author" for the document's Author or "My Custom Field" if you had created a custom field with that name.
Press the "OK" button and the field will show in the document.
There's a hell of a lot more, but this should get you started - I guess...
To use these items in other modes (i.e. program code) you have to understand a lot more about Word's object model.
Hope helps,
Darrell
'We all must do the hard bits so when we get bit we know where to bite'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.