you certainly have more of a grasp on the details then I do Bodo; all I know is that I should be able to do something like the following, but I cannot:
myDoc.CustomDocumentProperties.Add ( ... )
I suspect the issue is, is that DocumentProperties is defined/declared within the Office Library and not directly in the Word Library, though Word must surely inherit from Office?, and such code above would work in VBA. But as you say documentation is not always implemenation, and OR implementation differs from VBA implementation.
I have put the code into a Macro which I call via myWord.Run ( myMacroName ), which will surfice for now, I might yet put it into VBA dll, but to do it in OR would have been the prefered solution.
|