Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating Outlook through VFP 6.0
Message
De
09/05/2000 14:29:10
Jared Anderson
Marketing Support Solutions, Inc.
Forest, Virginie, États-Unis
 
 
À
09/05/2000 14:22:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00367348
Message ID:
00367766
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform