M
mjcast
I am using the Microsoft Word 10.0 Object library. And i am tryin to access the CustomDocumentPropterties.
Microsoft.Office.Core.DocumentProperty prp;
Microsoft.Office.Core.DocumentProperties prps =
(*.*.*.DocumentProperties)ExistingDocument.CustomDocumentProperties;
The above line throws an exception,
"Specified cast is not valid"
everything i have read says that CustomDocumentProperties are a collection of DocumentPropertys
why is this happening can i get some help?
Microsoft.Office.Core.DocumentProperty prp;
Microsoft.Office.Core.DocumentProperties prps =
(*.*.*.DocumentProperties)ExistingDocument.CustomDocumentProperties;
The above line throws an exception,
"Specified cast is not valid"
everything i have read says that CustomDocumentProperties are a collection of DocumentPropertys
why is this happening can i get some help?