G
Guest
Hi,
I am trying for word 2000 automation with c#. There I want to get all custom document property of the document as follows:
Microsoft.Office.Core.DocumentProperties props = (Microsoft.Office.Core.DocumentProperties)aDoc.CustomDocumentProperties;
(where aDoc is active Word document).
But this gives me an Invalid Cast Exception.
I feel like using the correct syntax.
Pls help.
Thx.
Sandeep
I am trying for word 2000 automation with c#. There I want to get all custom document property of the document as follows:
Microsoft.Office.Core.DocumentProperties props = (Microsoft.Office.Core.DocumentProperties)aDoc.CustomDocumentProperties;
(where aDoc is active Word document).
But this gives me an Invalid Cast Exception.
I feel like using the correct syntax.
Pls help.
Thx.
Sandeep