Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hooking into Outlook Events
Message
 
To
03/11/2006 17:39:18
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01166586
Message ID:
01167467
Views:
13
>>I'm not sure how I would know if it weren't. I use it on a daily basis with no problems. I would think if it wasn't installed correctly that I'd have some trouble with it.
>>
>>Any ideas on how to determine if it is or is not installed correctly?
>>
>
>Does CREATEOBJECT() work as expected? That's a pretty good sign.
>
>Are you sure you're looking in the right place in the list of libraries in the Object Browser. Note that it's in the M's, not the O's.
>
>Tamar

This code works fine for me:
oApp = createobject("Outlook.Application")
oItem = oApp.CreateItem(0)
oItem.Subject = "Test"
oItem.Display
So I can access the Outlook Application class fine ... instantiate an application object and create an email. That to some extent makes me think that Outlook is properly installed.

Also, I went back to my Object Browser. As I said, the closest thing I have to choose from in the COM Libraries List is: Microsoft.Office.Interop.Outlook,Version=11.0.0.0, ...

However, if I select that, it shows me the Outlook Library with all of its classes, their properties, interfaces, etc. And, if I go back into the Open dialog, the Recent History shows that I've opened: Microsoft Outlook 11.0 Object Library.

What's really weird is that in looking through the Outlook classes, I can see the MailItem class sporting its _MailItem interface. However, if I drag the interface to my code window, it gives me the IMPLEMENTS _MailItem in "Outlook.MailItem" code that keeps crashing on me.





Also,
Previous
Reply
Map
View

Click here to load this message in the networking platform