By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,448 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

while accessing "custom document property", invalid cast error.

P: n/a
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.Cus tomDocumentProperties;
(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

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sandeep,

The following artilce will help you.

303296 HOWTO: Use Automation to Get and to Set Office Document Properties with
http://support.microsoft.com/?id=303296
Hope this helps!
Bharat Patel
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.