FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WD23 - drag/drop attachement from Outlook
WD23 - drag/drop attachement from Outlook
Débuté par Arie, 15 aoû. 2018 21:49 - 8 réponses
Connectez-vous…
Arie
#1
Posté le 15 août 2018 - 21:49
Hi,
I;m using drag and drop in my application to let the user drag a file from the explorer into a window. And then import the file and attach it to a customer. Works great, I'm able to drag a copy of an ID-card for instance of an employee and save it in the database.
But when dragging an attachement directly from an Outlook message it does not work. I did some searching and it turns out that in this case the 'dragged object' is not a file, but some internal Microsoft object, not recognized by the WD framework.
Anyone has some info about this or a solution to catch these kind of objects?
Signaler
0
0
Neirynck Tonny
#2
Posté le 16 août 2018 - 16:26
Hi Arie,
perhaps my contribution can help the need for help for this issue, because I experience the same problem.
So indeed, I am also interested for the feedback.
Tonny
Signaler
0
0
DarrenF
#3
Posté le 16 août 2018 - 17:39
Hi,
Hmmm, not toally sure becasue I've never tried to do it, but on the face of it, it looks as though it's not possible with the functions as they stand.
Ok, so it's not WX but maybe this C# example can give some clues?
https://www.codeproject.com/Articles/7140/Drag-and-Drop-Attached-File-From-Outlook-and-ab
I've not tried it myself, but another method may be to look at 'simulating' dnd by using EmailSaveAttachment? If the dnd function still has the filename when the 'drop' occurs, then it should doable?
Signaler
0
0
Arie
#4
Posté le 16 août 2018 - 17:47
This little Outlook plugin solved my problem for now.
https://tonyfederer.github.io/OutlookFileDrag/
But this means each and every client has to install this and that's not the best solution. Some IT-guys will not allow me to do so.
I'd rather get this straight at the WD side.
Signaler
0
0
iso
#5
Posté le 16 août 2018 - 20:07
I use an activex component to directly drop outlook messages into.
Signaler
0
0
Arie
#6
Posté le 16 août 2018 - 20:50
Iso,
would be nice to tell us which component that would be...
Signaler
0
0
eduard
#7
Posté le 21 août 2018 - 00:09
Iso
yes, can you tell us what is this activex component please?
thanks
Signaler
0
0
iso
#8
Posté le 21 août 2018 - 16:50
Sorry Arie, i couldnt remember the name when i posted then forgot about it
I use 'Microsoft Web Browser' ActiveX
and use the this code to set the location:
AX_Email>>Navigate2("C:\Temp\")
Signaler
0
0
Lug
#9
Posté le 17 novembre 2023 - 12:52
Bonjour avez-vous un exemple d'utilisation du dl 'OutlookFileDrag' en vous remerciant
Hello do you have an example of using the dl 'OutlookFileDrag' thank you
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte