How to use document properties inside the document
I want to use the document properties (author and title) and the file name of the Document and some custom defined properties to show them at the header of the document
(I want to use an embedded excelsheet to show the properties formated) and at the head line of each page.
At this time, I put a VBA script-object in the document, which reads the data using
Set metadata = worksheet.metadata
Set items = metadata.customitems
For each item in items
...
If (item.name = "m_discription") Then
Outputs(1).Value = item.value
End If
...
Next
(I'm not familiar with VBA, I found this code lines in a forum)
It works.
My questions:
-Is there another solution for referencing the meta-data inside the doc and inside the header and footer?
(As in Word, for example?)
-How can I get ,title' and ,author' from the builtin document properties and the filename?
Thanks,
H.Steffen

