I already tried this but Windev accepts MAPI.Session but block immediatly
after and returns an error message with MAPI.Message MAPI.Fields and
MAPI.Field
that says
the automation object 'MAPI.Message' is not installed on your system
Anyway, the outlook object would be much easier for me !!!
Thank you very much for your answers
:
You must use CDO or Redemption, not Outlook objects, to work with the MAPI property that holds the user's color label selection. See
http://www.outlookcode.com/codedetail.aspx?id=139 for sample code.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
Sorry I'm french so my vocabulary isn't so good.
By recover i mean retrieve or give the property to a calendary item.
I program in Windev language. The source (simplified) is :
wm_OutLook est un objet OLE dynamique // Objet "OutLook.Application"
wm_NameSpace est un objet OLE dynamique/ Objet NameSpace, "MAPI"
wm_Folder est un objet OLE dynamique
wm_Item est un objet OLE dynamique // Objet Item
wsUtilisateur est une chaînel'utilisateur
nIDDossier est un entier
wm_OutLook=allouer un objet OLE "OutLook.Application"
wm_NameSpace=wm_OutLook>>GetNameSpace("MAPI")
wsUtilisateur=wm_NameSpace>>CurrentUser>>Name
nIDDossier=9
wnTypeItem=1
wm_Folder = wm_NameSpace>>GetDefaultFolder(nIDDossier)
wm_Item = wm_OutLook>>CreateItem(wnTypeItem)
wm_Item>>Categories = Table.Ay_desig[wi]
wm_Item>>Subject = Table.Ay_desig[wi]+" du "+DateVersChaine(w_date)
wm_Item>>Body = Table.Ax_observation[wi]
wm_Item>>Start = wr1
wm_Item>>End = wr2
wm_Item>>ReminderSet=Vrai
wm_Item>>ReminderMinutesBeforeStart = 5
wm_Item>>Save()
------------------
the property categories in
wm_Item>>Categories = Table.Ay_desig[wi]
is the category in the bottom of the window not the new categorie of outlook
2003 wich you can give a color.
I hoped microsoft created a new property like Colorcategory but i believe
they didn't.