COM Addin - MailEnvelope object

S

Simple4All

Hi.

I have an office 2003 COM addin (VS.NET/C# + Unmanaged COM Shim) providing some additional functionality to the Word email template.

Creating a new mail from Outlook and accessing the ActiveDocument.MailEnvelope.Item gives me some errors.

MailItem mailItm = wordApp.ActiveDocument.MailEnvelope.Item as MailItem
Results in exception, Value cannot be null. Parameter name: ntIdentity
object o = wordApp.ActiveDocument.MailEnvelope.Item
Results in exception, Object reference not set to an instance of an object

Can anyone tell me what the problem is?

Thanks

Steffen - DK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top