xsharp.eu • DragDrop from Outlook
Page 1 of 1

DragDrop from Outlook

Posted: Wed Sep 01, 2021 1:25 pm
by ecos
Hi,
does anybody know how to accept .msg-files via dragdrop from outlook ? Dropping files from explorer works fine, but if I drag an email from outlook the cursor only shows a "stopsign" and no drop-event is fired...

DragDrop from Outlook

Posted: Wed Sep 01, 2021 2:14 pm
by wriedmann
Hi Karl,
unfortunately to make work the drop from Outlook you have to do massive OLE work because Outlook sends only OLE objects.
But there is a free workaround: please look at this Outlook plugin:
https://tonyfederer.github.io/OutlookFileDrag/
I'm using than for a few years now everywhere I need to drag messages and attachments from Outlook to my VO programs.
Wolfgang

DragDrop from Outlook

Posted: Thu Sep 02, 2021 6:19 am
by ecos
Hi Wolfgang,
many thanks for your quick answer. It confirms what I found out myself. I just wanted to be sure that I don't miss anything obvious. Main problem will certainly be to convince our customers to install a plugin...
Will DotNet make things easier in any way ? We hope to have our conversion running by the end of the year.
Karl

DragDrop from Outlook

Posted: Thu Sep 02, 2021 6:29 am
by wriedmann
Hi Karl,
unfortunately .NET does not change anything here.
So if Microsoft does not changes anything in Outlook and you have then upgraded all your customers to this version, you have to convince your customers to install that plugin.
It is easy to explain: it makes something Microsoft has forgotten to implement.
Wolfgang

DragDrop from Outlook

Posted: Thu Sep 02, 2021 6:35 am
by ecos
in a certain way this makes things easier for me personally, dealing with the customers is someone elses job here...
Thanks again for th clarification

DragDrop from Outlook

Posted: Thu Sep 09, 2021 7:15 am
by fxm
Have you looked at this?

https://www.codeproject.com/Articles/28 ... -Drop-in-C

The code works well. The sample allows you to drag to the form and it saves the .msg file in the application folder. No plugins required.

Fergus

DragDrop from Outlook

Posted: Thu Sep 09, 2021 7:21 am
by ecos
I'll have a look at this. But I don't think it will be possible with VOGUI-classes even in x#. Switchin to winforms is no option...

DragDrop from Outlook

Posted: Fri Sep 10, 2021 12:23 pm
by ArneOrtlinghaus
We have succeeded Drag&Drop of Outlook emails in VO and also in X# with the VO-GUI-Classes (modified partially by us).

It was a work of many, many weeks. I can share some code (not compilable) if someone is interested. But also when having some code you will surely have to spend at least two other weeks to get everything working! I can't help, I have not programmed it and I am getting headache when looking a parts of it. My colleagues, who programmed it, have not time to help anybody. The code is partially written in C for VO and partially written in C# for X#. As we want to change the GUI-Classes to Winforms we know already that there will be much work again. Of course Winforms should make some parts easier, but not everything. There are many exceptions to handle.

So perhaps the solution Wolfgang proposed, is much easier to implement.

Arne