Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Finding appointment by EntryID
Versions des environnements
Network:
Windows 2000 Server
Hello,
I'm using the following code to find an appointment in Microsoft Outlook based on an EntryID I stored in the past.
-------------------------------------------------
LOCAL loOutlook as "Outlook.Application"
loOutlook = CREATEOBJECT("Outlook.Application")
loNameSpace = loOutlook.GetNamespace("MAPI")
loRecipient = loNameSpace.CreateRecipient("AnyUserName")
loRecipient.Resolve()
IF loRecipient.Resolved = .F.
MessageBox("Account not accessable !")
ENDIF
lcCurrentUserName = loRecipient.Name
lcEntryID = "0000000054BC51CB44046E4E996642DEF62A3F430700D5E163..."
loFolder = loNameSpace.GetSharedDefaultFolder(loRecipient,9)
loItems = loFolder.Items
oMyItem = loItems.GetItemFromId( lcEntryID )
IF VARTYPE(oMyItem) = "O"
oMyItem.Display()
ENDIF
----------------------------------
Running this code I get an OLE error code 0x80020006 : Unknown COM status code. Does anyone knows why ?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement