J
Jason Reichenbach
I have a series of tasks to perform, some of which involve working with Word
using the COM interface from C#.NET.
I have one problem I have not solved yet: How to access individual elements
of the BuiltInDocumentProperties in a document.
BuiltInDocumentProperties is defined as an abstract object according to the
COM object browser. But I have not yet found what concrete objects are
derived from this, or how to access them from C#.
From VBA or vbScript it is pretty straight forward:
(vbScript)
docTitle = doc.Builtindocumentproperties (wdTitleField)
Where wdTitleField is a constant defined in the script file. However, in C#
this won't compile.
Any ideas will be most appreciated.
Jason
For example, I need to get the Title field.
using the COM interface from C#.NET.
I have one problem I have not solved yet: How to access individual elements
of the BuiltInDocumentProperties in a document.
BuiltInDocumentProperties is defined as an abstract object according to the
COM object browser. But I have not yet found what concrete objects are
derived from this, or how to access them from C#.
From VBA or vbScript it is pretty straight forward:
(vbScript)
docTitle = doc.Builtindocumentproperties (wdTitleField)
Where wdTitleField is a constant defined in the script file. However, in C#
this won't compile.
Any ideas will be most appreciated.
Jason
For example, I need to get the Title field.