Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiating Outlook through VFP 6.0
Message
From
09/05/2000 14:29:10
Jared Anderson
Marketing Support Solutions, Inc.
Forest, Virginia, United States
 
 
To
09/05/2000 14:22:00
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00367348
Message ID:
00367766
Views:
23
>Sure you can! Look at this code again...I changed it a bit:
>
>nItemType = 10 && 10=Contacts,6=Inbox,9=Calendar,13=Tasks....etc,etc.
>oOutlook =CREATEOBJECT("Outlook.Application")
>oNameSpace =oOutlook.GetNameSpace("MAPI")
>oContacts =oNameSpace.GetDefaultFolder(nItemType)
>oExplorer =oContacts.GetExplorer
>oExplorer.Display
>
>
>Just change the item type and a new explorer comes up. Now, if you change what
>you want to look at, you have to start with GetNameSpace again. Why, I don't
>know but you do.

Okay, thanks. :) I was getting myself off of my own track I was originally trying to follow. The problem wasn't exactly being able to reference any of the Explorers, but to ADD/CREATE an explorer (especially in the case of [an] Outlook [Explorer] not already running). [unless GetExplorer does not require that there be an "active" explorer?]

Now, in 2000, there is an .Add method (since it is a collection now) which makes this much easier.

Jared M Anderson
Interactive Data Systems, Inc.
janderson@idevgroup.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform