Help calling Outlook

B

Brett

When I run this line:

myolApp = CreateObject("Outlook.Application")

The myolApp object has a value of {Outlook.ApplicationClass}. When I expand
it in the watch window, all properties/methods of that object have a value
of
<error: an exception of type: {System.InvalidCastException} occured>

I'm referencing the Outlook 10.0 Object Library (Interop.Outlook), which
list the version as 9.1 in the properties window. The
Interop.Microsoft.Office.Core 2.2 reference is also there.

Does any one know what causing this error and a possible solution?

Using VB .NET 2003 with .NET 1.1 framework.

Thanks,
Brett
 

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