Discussion:
Drag&Drop mail items to other applications...
(too old to reply)
vrkorada[Hotmail]
2010-01-08 13:08:27 UTC
Permalink
Hi,
I have a requirement to drag and drop outlook items to my desktop
application in java. In the drop event, I am getting only the message
subject and nothing else. Is there any way I can get the mail item?

As an alternative, I tried to copy the mail item to a temporary location on
dragging the item from Outlook, but unfortunately, there is no event to
handle for dragging the mail items from the outlook explorer window. Is
there any way to handle the drag event in Outlook?

Best regards,
Ramana
Ken Slovak - [MVP - Outlook]
2010-01-08 14:39:24 UTC
Permalink
Outlook doesn't provide any events for drag and drop.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
Post by vrkorada[Hotmail]
Hi,
I have a requirement to drag and drop outlook items to my desktop
application in java. In the drop event, I am getting only the message
subject and nothing else. Is there any way I can get the mail item?
As an alternative, I tried to copy the mail item to a temporary location
on dragging the item from Outlook, but unfortunately, there is no event to
handle for dragging the mail items from the outlook explorer window. Is
there any way to handle the drag event in Outlook?
Best regards,
Ramana
Dmitry Streblechenko
2010-01-10 16:25:26 UTC
Permalink
Yes, but you will not get CF_HDROP data format (which I suspect the only
kind that Java supports).
When dragging from Outlook, you get data in the
FileContents/FileGroupDescriptor formats. C++/Delphi should not be a
problem, don't know about Java.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by vrkorada[Hotmail]
Hi,
I have a requirement to drag and drop outlook items to my desktop
application in java. In the drop event, I am getting only the message
subject and nothing else. Is there any way I can get the mail item?
As an alternative, I tried to copy the mail item to a temporary location
on dragging the item from Outlook, but unfortunately, there is no event to
handle for dragging the mail items from the outlook explorer window. Is
there any way to handle the drag event in Outlook?
Best regards,
Ramana
vrkorada[Hotmail]
2010-01-11 07:22:41 UTC
Permalink
Hi Dmitry Streblechenko,
Thanks for your reply. We use your redemption tool heavily.
Is it possible to trigger the drag event from Outlook? so that we can apply
some hacky solution / work around to copy the mail item from outlook using
redemption (to suppress any dialogs) and then use the same file to upload
from Java.

Regards,
Ramana
Post by Dmitry Streblechenko
Yes, but you will not get CF_HDROP data format (which I suspect the only
kind that Java supports).
When dragging from Outlook, you get data in the
FileContents/FileGroupDescriptor formats. C++/Delphi should not be a
problem, don't know about Java.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by vrkorada[Hotmail]
Hi,
I have a requirement to drag and drop outlook items to my desktop
application in java. In the drop event, I am getting only the message
subject and nothing else. Is there any way I can get the mail item?
As an alternative, I tried to copy the mail item to a temporary location
on dragging the item from Outlook, but unfortunately, there is no event
to handle for dragging the mail items from the outlook explorer window.
Is there any way to handle the drag event in Outlook?
Best regards,
Ramana
Dmitry Streblechenko
2010-01-11 17:53:51 UTC
Permalink
No, this has nothing to do with MAPI, Redemption, or even Outlook. The
window that accepts the drop event needs to handle these formats, there is
no way aorund that.
The only workaround is to assume that since you are getting a drop even from
Outlook, the messages need to be selected first, hence you can use the
Application.ActiveExplorer.Selection collection.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by vrkorada[Hotmail]
Hi Dmitry Streblechenko,
Thanks for your reply. We use your redemption tool heavily.
Is it possible to trigger the drag event from Outlook? so that we can
apply some hacky solution / work around to copy the mail item from outlook
using redemption (to suppress any dialogs) and then use the same file to
upload from Java.
Regards,
Ramana
Post by Dmitry Streblechenko
Yes, but you will not get CF_HDROP data format (which I suspect the only
kind that Java supports).
When dragging from Outlook, you get data in the
FileContents/FileGroupDescriptor formats. C++/Delphi should not be a
problem, don't know about Java.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Post by vrkorada[Hotmail]
Hi,
I have a requirement to drag and drop outlook items to my desktop
application in java. In the drop event, I am getting only the message
subject and nothing else. Is there any way I can get the mail item?
As an alternative, I tried to copy the mail item to a temporary location
on dragging the item from Outlook, but unfortunately, there is no event
to handle for dragging the mail items from the outlook explorer window.
Is there any way to handle the drag event in Outlook?
Best regards,
Ramana
Loading...