
| Subject: | CustomDocumentProperties, BuiltInDocumentProperties |
| Posted by: | Ali Cetinturk |
| Date: | Fri, 29 May 2009 |
Hi there,
I am using Delphi 2009 (Professional) and Word 2007. I would like to get some information from Word document, like author, how many variables, etc.. My code was working with Delphi 7 and Word 2007, now i've got an error.
My code is :
// this line is for Word_TLB.pas (from Word 2007)
WordApp.Documents.Open(myFile, emptyParam, readOnly, emptyParam, emptyParam,
emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam,
emptyParam, emptyParam, emptyParam);
OR
// this line is Word2000.pas
WordApp.Documents.Open(myFile, emptyParam, readOnly, emptyParam, emptyParam,
emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam, emptyParam)
aString := WordApp.ActiveDocument.CustomDocumentProperties[wdPropertyAuthor].Value;
in last line I've got an error : EOleException with message 'Unspecified error'.
How can I get this information
Thanks,
Ali Cetinturk