The-Drag-and-Drop-Component-Suite-for-Delphi icon indicating copy to clipboard operation
The-Drag-and-Drop-Component-Suite-for-Delphi copied to clipboard

copy / paste of outlook attachment / or from file explorer not working

Open dbargaud opened this issue 3 years ago • 2 comments

Hello,

using the demo VirtualFile I cannot use the copy/paste operation from attachment neither from the windows file explorer. The filename is ok but the content is always empty. I've tried on two different computers.

No issue using the drag and drop but I unfortunately really need the copy/paste.

Could you help me to solve this issue ?

I use Windows 10 x64, Outlook 2019 32bits, VirtualFile 32bits, Delphi 10.3.3.

Thank you for your help.

David

dbargaud avatar Mar 09 '21 15:03 dbargaud

Copy works for me. Paste will not work this way because the contents of the file are not on the clipboard when copied with Windows Explorer. You can check this with every clipboard explorer.

landrix avatar Mar 10 '21 08:03 landrix

Effectively, you are right concerning the file explorer. But it should work from outlook. If I check with a clipboard explorer as suggested I see that there is data corresponding to size of the file copied. The data seems to be in "FileContents" with the format 0xc072 (only reporting what the tool says :P ) (Clipboard) I can also view in OLEMode that the file content is a ISTREAM. (Clipboard OLE

dbargaud avatar Mar 10 '21 10:03 dbargaud