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








>That's exactly my interpretation of what it means. In 98, I'm able to find the "ActiveExplorer" (if Outlook is already open), but that's it. I can't reference any other Explorer other than the active one. Putting them in a collection for 2000 allows references to any and all of them. (That's my read on it anyway :] )
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform