PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Outlook Drag and Drop with office 365
Outlook Drag and Drop with office 365
Débuté par eduard, 24 aoû. 2018 16:28 - Aucune réponse
Posté le 24 août 2018 - 16:28
Hi, I have a application where I do a drag and drop from outlook to windev to save my emails
Until now it works well I use this
MonOutlook is object OLE "OutLook.Application"

and DnDEvent(ProcLâcherCible,IMG_Cible,dndDrop)
where Proces is
i is int
Sujets is array of strings
tabCorpsMessage is array of string
MailItem is object Automation dynamic
WHEN EXCEPTION IN
FOR i = 1 _TO_ MonOutlook>>ActiveExplorer>>Selection>>Count
MailItem = MonOutlook>>ActiveExplorer>>Selection(i)
Add(Sujets,MailItem>>Subject)
// on affiche les sujets des messages
Info (Sujets[i])
// on peut récupérer toutes propriétés de MailItem
// mais attention à la sécurité
Add(tabCorpsMessage,MailItem>>Body)
END

DO
END


It works well but in Office365 I only have one license of it and If I have openened outlook then the proyect crashes when I declare MonOutlook is object OLE "OutLook.Application", says to me that I can't have 2 outlooks oppeneds.

There ara other way to drag and drop from outlook ?
I hope you can help me

Thanks