I\'m trying to make a program that would open new Outlook 2007 message.
I\'ve referenced from COM tab Microsoft Outlook 12.0 ObjectLibrary.
These items showe
Had the same problem with the following code:
Dim OutlookMessage As Outlook.MailItem
Dim AppOutlook As New Outlook.Application
OutlookMessage = AppOutlook.CreateItem(Outlook.OlItemType.olMailItem)
Replacing the first line with the following solved it for me.
Dim OutlookMessage As Object
(sample in VB but same should apply to C#)