DragDrop from Outlook

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
ecos
Posts: 103
Joined: Tue Nov 10, 2015 6:49 am
Location: Germany

DragDrop from Outlook

Post 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...
User avatar
wriedmann
Posts: 3784
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

DragDrop from Outlook

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
ecos
Posts: 103
Joined: Tue Nov 10, 2015 6:49 am
Location: Germany

DragDrop from Outlook

Post 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
User avatar
wriedmann
Posts: 3784
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

DragDrop from Outlook

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
ecos
Posts: 103
Joined: Tue Nov 10, 2015 6:49 am
Location: Germany

DragDrop from Outlook

Post 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
fxm
Posts: 53
Joined: Tue Nov 24, 2015 9:27 am
Location: Austria

DragDrop from Outlook

Post 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
ecos
Posts: 103
Joined: Tue Nov 10, 2015 6:49 am
Location: Germany

DragDrop from Outlook

Post 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...
User avatar
ArneOrtlinghaus
Posts: 414
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

DragDrop from Outlook

Post 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
Post Reply