Bit of a strange requirement, but a customer has asked for this so, any ideas on how to:
User copies attachment(s) from Outlook
They then right click in our app and paste. At which point the application will create a file for each attachment plus creating records in the database.
I have this working for when they copy files to the clipboard, the problem is with Outlook attachments. For normal files I can use
Clipboard.GetAsHandle(CF_HDROP)
if this <> 0 then
loop through the files using DragQueryFile to get the filename and copy the files
My problem is trying to get this to work with copied attachments. I'm fairly sure the code will be similar, but requires checking the FILE GROUP DESCRIPTOR and then processing the Handle in a slightly different manner. Alas, I seem to be spending a lot of time not getting anywhere fast with it.
Any help/ideas appreciated. I cannot access Outlook direct as it is run on their local machine and the destination app is within a Remote Desktop window.
Robertio
Software Developer
User copies attachment(s) from Outlook
They then right click in our app and paste. At which point the application will create a file for each attachment plus creating records in the database.
I have this working for when they copy files to the clipboard, the problem is with Outlook attachments. For normal files I can use
Clipboard.GetAsHandle(CF_HDROP)
if this <> 0 then
loop through the files using DragQueryFile to get the filename and copy the files
My problem is trying to get this to work with copied attachments. I'm fairly sure the code will be similar, but requires checking the FILE GROUP DESCRIPTOR and then processing the Handle in a slightly different manner. Alas, I seem to be spending a lot of time not getting anywhere fast with it.
Any help/ideas appreciated. I cannot access Outlook direct as it is run on their local machine and the destination app is within a Remote Desktop window.
Robertio
Software Developer