Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook
Message
De
15/02/1999 06:47:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Outlook
Divers
Thread ID:
00187622
Message ID:
00187622
Vues:
62
Hi,
I am developing an application which automate MS Outlook. There are some problem occur , and I unable to solve it after tries.

Form.Init
#include office97.h
*Create an instance of Outlook to allow access fuunction from MS Outlook
oOutlook=CREATEOBJECT("outlook.application")
oMAPI=oOutlook.getnamespace("MAPI")
objFolder=oMAPI.getdefaultfolder(olFolderInbox)

Button.Click Event

objFolder.Display
OR
oExplorer = objFolder.GetExplorer
oExplorer.display

The error of "objFolder is not an object" will occur for 1st time running of my program or after I close VFP application and restart VFP. After the error occurs, I cancel it and retry it will be OK.
It occurs only when the "1st time"...

Anybody have any ideas t solve it?
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Répondre
Fil
Voir

Click here to load this message in the networking platform