Drag and drop files from Outlook move mails to delete box

Hi everybody,
I'm trying to develop a feature to be able to drag one or several mails from Outlook to my Java application.
As Java doesn't recognize a drop of an Outlook mail, in my program, I assume that if it's not a known file type, it is a mail. (I know it's quite straightforward).
When one or several mails are dropped I use a function from a plugin to get detail from the Outlook mails to import them into my application. In fact it import the data from the current selected mails in Outlook. This function is working perfectly when I use it without drag and drop (from a button 'Import' in the application).
My problem is that when I use drag and drop, mails are imported correctly but sometimes (not always) they are also moved in the delete box of Outlook. I have done several tests to try to figure out what is the cause. I have used several versions of Outlook, I have dropped 1 mail and several mails a the same time, etc...
Here are my tests results: it deletes the mails randomly but it seems to delete more often when my Java application isn't in full screen.
What could be the cause?
Another question: is it possible to configure my drop area to do copies only and not move? When you drag and drop you have a small symbol next to your mouse arrow. It is a '+' inside a square for copy and an empty square for move. My drag and drop does move by default. I could maybe avoid my deletion problem by changing it to copy?!
Cheers.
Edited by: Foobrother on Apr 16, 2009 2:46 AM

I think I have fixed it. I still have to make more tests, but it doesn't delete the mails any more for the moment.
In fact, when dropped item is detected as a file I do dtde.acceptDrop(DnDConstants.ACTION_COPY);But if it's not, I just set a variable to say that it is an Outlook mail.
So I have added the line dtde.rejectDrop(); to cancel the drop. And now it seems to work.
Apparently, I didn't clean some stuff when doing an email drop and it still wanted to move the mail or something?!
Anyway, thanks for the help

Similar Messages

  • Drag and drop file into Outlook from AIR application

    I am hoping to see if this would be possible with the Adobe AIR API. We currently have a desktop AIR application that clients install in order to facilitate certain operations triggered via a web application (such as opening files directly from the web).
    One of the actions we are requested to support is the ability to drag and drop files from our web application directly into Outlook and have the file added as an attachment. I saw the documentation at Adobe Flash Platform * Dropping file promises and was wondering if this might be a possibility, or if there was some other method of performing this.
    We are trying to get around the fact that users now have to download a document to their desktop before being able to attach in Outlook.
    Thanks for any assistance.

    You just aren't calling the right NativeDragManager functions. See http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d83.html

  • Drag and Drop Attachment from Outlook to LABVIEW

    Hi,
    I try to write a very simple program, which manages files. With the path control of LABVIEW we fortunately can Drag and Drop files from e.g. explorer, whose path I can use after dropping. The problem is, that I would like to do this directly with files from an Outlook mail attachment. Drag the attachment and drop it onto my LABVIEW window and be able to handle this file (copy elsewhere and rename it, for example)... That is what I dream of.
    I searched the internet for a long time, but I didn't find a solution.
    Thanks a lot for your help,
    yours,
    Daniel

    Probably not as easily. Drag & Drop in Windows is a complicated thing with the Server and Client negotiating a format to transfer. The server can offer many formats and the client then selects the one it can handle. The LabVIEW path control only can handle physical paths. So if the server application offers a path as one of the formats and then when the application selects that format makes sure that the file is copied somewhere in the filesystem (temporary path) and sends that path to the client, the LabVIEW path control will work fine. If the server application insists into memory stream only formats, the LabVIEW path control can not deal with them in any way. Outlook being a Microsoft product most likely insists in OLE formats and then you get into trouble.
    You basically need to interface to the Win32 or OLE Drag and Drop API to get this working. And no it's not trivial at all, because Drag and Drop not only varies greatly between platforms but also between OS versions.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • My macbook pro with OS x Lion will not drag and drop files from finder or iTunes

    My macbook pro with OS x Lion will not drag and drop files from finder or iTunes. Can anyone help?

    Hi, I just have same problem.. I can't drag and drop file /folder.. please help.. I can drag the file/folder and move it , but I can't drop it after move it please help...!!!
    It is happen just after I re-start my computer.. I tried to repair and anything but just don't work. Actually the old style one finger double tab and lock is much better rather the 3 fingers.
    Please help to fix the drag and drop for file/folder/itunes.

  • Mac: can I drag and drop files from Finder into Files panel

    I am relatively new to Mac so forgive me if this is obvious.
    I just switched from Windows to Mac and now something I used to
    know how to do in Windows I can't figure out how to do on Mac. In
    Windows I used to open an Explorer window over Dreamweaver, select
    some files, and drap and drop them into the Files panel in
    Dreamweaver, and they would be sucked in.
    Now on the Mac whenever I select the Finder window to select
    files to drag and drop, the Dreamweaver panels disappear
    completely, rather than just move beneath the Finder window. So
    when I'm ready to drag and drop there's no Dreamweaver to drop
    into. I see that if I put focus on Dreamweaver, then Finder won't
    disappear, and I can click on Finder to begin a drag without
    Dreamweaver disappearing but then it is unresponsive to a drop.
    In short, I can't seem to drag and drop files from Finder
    into Dreamweaver on the Mac. Am I missing something? I'm using
    Dreamweaver CS3 on Leopard if that makes any difference.
    Thanks,
    Jan

    I don't believe you can do this on the Mac platform. The only
    other thing you could try is to use Spaces and have the Finder open
    in one Space and then drag it over to Dreamweaver in another space.
    Outside of that I can't think of how this would work.

  • HT2518 how do i or can i drag and drop files from one external drive to another ???HOW

    how do i drag and drop files from one external drive to another, i cannt get both drives to open up. only one at a time.. i have alot to learn i know but that is where i am at the time...

    You posted here so would assume you are also talking about running Windows.
    Are the drives NTFS and use on Windows?
    Are they Mac HFS formatted?
    You likely will need NTFS for OS X in one case. to mount PC and use under Mac OS Lion
    MacDrive to mount and WRITE to HFS drives under Windows

  • Drag and drop files from outside of DW into DW Files Window

    When I was using Dreamweaver CS for Windows, I could drag and
    drop files from my desktop directly into the Files Window of
    Dreamweaver. But I can't do that in the Macintosh version. Am I
    doing something wrong, or is it not supported?

    No. This is not supported.
    We cannot comment on upcoming versions.

  • If I were to drag and drop files from an OSX 9 onto an external hard drive (1 TB), assuming there is still plenty of space left, will I be able to use this same external hard drive to back up my iMac (Mountain Lion)?

    If I were to drag and drop files from an OSX 9 onto an external hard drive (1 TB), assuming there is still plenty of space left, will I be able to use this same external hard drive to back up my iMac (Mountain Lion)?  And would it ask me if I want to initialize (thus erasing it) or eject the hard drive like the OSX 9 did?

    I was trying to follow this thread because I was curious about the OS 9 installation - until I realized you have another thread going about the very same subject, albeit with a different subject line.
    FWIW: it is best not to double post - things get far too confusing after a while.
    @ Kappy (in case you hadn't seen the other one):
    https://discussions.apple.com/thread/5054178?tstart=0

  • I want to have two folders of Finder so that I can easily drag and drop files from one folder to another

    I have been trying to reorganize my files. When in Manila I created a folder called Manila 2015 in Documents. I have the Mother folder Files 2015 with several subfolders like Finances, Personal, Tax etc. I want to have two finder folders simultaneously so that I can drag and drop files from the Manila 2015 folder to the various subfolders in the mother folder Files 2015. I am not able to open two windows of Finder on the desktop.

    I have since found out that a new finder window can be opened witht the short cut Command+N.
    Thanks anyway.

  • Drag and Drop files from other places to universal apps(windows store)

    Hi,
    Is there a possiblity to drag and drop a file from windows desktop or from other windows store app to my application. I tried searching samples, but it says about dragging an image with in the solution.
    The best example is drag and drop files into recycle bin. Is there a way possible for modern app(instead of recycle bin), or give an user similar experince as the same.
    If not windows8/windows8.1,could we expect in windows 10.
    I believe if it is not possible with XAML/c#, the same holds good for HTML5/JS
    Thanks & Regards Tejaswi Chandrapatla

    No. This is not supported.
    We cannot comment on upcoming versions.

  • Mail "New Message" window retreats to background after drag and drop attachment from Finder to Mail "New Message", click, and Finder window stays in foreground even when not in focus

    Hi, I'm surprised I can't quickly find if anyone else is having this issue. For me it has been going on since Lion on my 13" MacBook Pro 2011 and it's still persisting in Mavericks, and even still now that I've "downgraded" to a 15" MacBook Pro 2010 with Mavericks.  The behavior is odd and difficult to explain concisely. Basically, when I want to add an attachment to Mail, I'll Cmd+Tab over to Finder click and drag and Cmd+Tab back to Mail, and drop the attachment. At first it looks fine, but when I click in the New Message window where I just dropped the attachment, to move the cursor, it retreats to the background and the Mail Main Window comes to the foreground. Then, if I click on that, the Finder window that I just used comes to the foreground. Sometimes if I switched to another app before going to Finder to select the drag and drop, that other app window will appear in the foreground instead. If I click on the other app window that is now in the foreground, then the Finder window that was last used will come to the foreground. The only thing that seems to fix this switch-a-roo effect is Cmd+Tab-ing back and forth a few times, or click on the window "frame" at the top to move the window around.
    The way to prevent this is to have my Mail Message window visible in the foreground side by side with the Finder window when the drag and drop occurs (this is a tedious extra step if mulitple windows are open, or to use the add attachment command in the menu within Mail. But it sure is annoying buggy behavior.
    Thanks
    Daniel

    Yep, I get exactly the same thing when using Thunderbird mail client on my 2011 iMac running Lion. I've been putting up with it for at least a year, maybe longer.
    For me it appeared to start after a Thunderbird update, so I figured that was the cause and couldn't find a solution at the time. However I've now noticed it starting to happen in Apple Motion 4 when dragging files from Finder into a DropZone in my animations. Motion remains the active program but the Finder window sits on top until I Cmd-tab out to a third open program (ie not Finder) and back to Motion again.
    This is the first indicator I've had that it's an OS X issue.
    Be great to find a solution as D&D is by far my preferred way of adding attachments to emails and similar tasks.

  • Unable to use "drag and drop function" from outlook

    We are changing from Lotus to outlook and this has made a problem with getting pdf-files into OAWD directly .
    Procedure was like this in Lotus
    1. We get documents (FI, F-43, aso ) by email
    2. We use OAWD function "drag and drop" , document is attached to a document type and workflow is triggered
    3. We pick up documents from Business workplace , handle the document and send it to the approver (who earlier got it directly in their mailbox "lotus")
    so far so good , everything worked well
    Unfortunately we changed to outlook, non attached files can be "drag and dropped" into OAWD (I understand the part about outlook is showing links instead of "real" pdf and know this is part of the problem)
    My question, it can not be possible that we have to manually save the documents/attached files from outlook into "desktop" to later use the drag and drop function?
    I have read about the programms to solve problem , ex "inPuncto", but our experts says there will be problem with connector to workflow from OAWD.
    I have my greatest doubts about that because this must be really two diffrent moduls, one for converting from outlook and the other must be unchange (undependent of the earlier procedure). SAP can not know from what program the documents will be dragged? 
    Suggestion about some OAWD-adaptor ?
    Any suggestions about great solutions ?

    it seems there is no way.
    See note 1797073
    Is there someone with a better solution?

  • Drag and Drop file from a jsp to local machine

    Hello All,
    We have got a user requirement where, currently we have an attachment section in our JSP, where users are provided with the file download links,
    as the user clicks those links the file download pop appears.
    But now they ask for a drag and drop functionality, so that the link icon which they see on the JSP, if they drag it to there local machine, the file is downloaded
    to the machine. Am not sure if it can be done from a web page. Any ideas if at all this is feasible. Or any direction where i can look through.
    Thanks,

    duskandawn wrote:
    But the other way around of dragging file which is on server, to the local machine...even if i have applet.. not sure how will that work.Neither am I. Just check the documentation / forums associated with the UI framework in question. This forum is for JSP/JSTL only. I can only tell how to embed an applet or webstart app in JSP, but nothing more than that.
    Any ideas around Activex stuff if any ?Terribly bad idea. It's a MS proprietary technology and it would work in only one certain webbrowser developed by the same company, so you would exclude about 40% of the world wide web population from using the functionality. Just use the standard technologies.

  • Cannot drag and drop file from photos app to photoshop

    Hi,
    I'm trying to open a file saved in my Photos library in Photoshop. Previously in iPhoto I could drag and drop the file to open in other applications including Photoshop but this functionality appears to be missing in the new Photos app. Am i missing something? Or is there another way to do it?
    thanks

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

  • Drag and Drop file FROM Java app TO native desktop

    I'm a litte new to Drag and Drop. After a few days of looking around I've been through enough examples to copy and paste some skeleton code and get it working in my own application.
    What I haven't gotten any answers to (after searching on google, newsgroups, and here) is if it's possible to drag something from a Java app to the desktop or file browser, and have java create a file there.
    I know you can drag text to native apps, so I was wondering if you could make a Transferable object that's different than StringSelection(), like a file stream or something.
    Thanks,
    Tristan

    Tristan,
    I am stuck in the same place. Perhaps we could work on this together.
    I am trying to drag a single item from a JList to a text editor, Word, etc. I have two problems:
    1) I can't seem to get just the item in the JList to drag. It wants to drag the entire JList component.
    2) How does one define the remote application as the drop target? Have not found any examples either.
    Is the drop target actually the system clipboard?
    Rp

Maybe you are looking for

  • Cannot install standalone QT 7.0.3 (Error Code 1324)

    Hey all, After I tried to upgrade iTunes from 5 to 6 I got the same problem that many had: the installer would cycle endlessly on "Installing Quicktime," and with much effort I managed to quit installation, erase everything and install iTunes again.

  • Error exporting file

    In my Indesign-Extension, there is a button. If you press it, the pages of the current active document will be exported to a predefined folder using doc.exportFile(ExportFormat.PNG_FORMAT, myFile);  This works fine, but only ONCE. If you press the bu

  • Fail to connect to oracle 8i

    Hell,everyone: when i try to connect to my db server in JDEV 3.0,i fail! The message is "no more data to read from socket" the following is the input: user name:lyxiong passwd: lyx123 jdbcdriver: Oracle JDBC thin host id:192.168.0.6 port: 1521 null

  • Sap best practices - payroll international

    hello experts, Pls forward me the path of SAP Best Practices for international payroll or mail me [email protected] it is very urgent...... thanks ram

  • Collection class for pairs of objects.

    Hello! I need to use a control to save pairs of objects, but there can be n ocurrences of the same object in any position of the pair, so the classes that implements Map will not work, any sugestions? thanks. U.