Dragging an email message from Outlook to a Windows Forms application

vrkorada

New member
Joined
Jun 20, 2003
Messages
1
Hi,

I am facing problem in handling Drag & Drop of Outlook attachments into
.NET application . I could find any information regarding this. I found
that this is not same as Drag&Drop from explorer.
Any idea on how to handle outlook attachments while drag and drop.

I checked in debug mode and the format is not matching with any of the
dataformats.


I have used the following code in the drag drop event.


If e.Data.GetDataPresent("FileGroupDescriptor", False) And
e.Data.GetDataPresent("FileContents") Then

e.Data.GetData("FileGroupDescriptor")
msFileGroupDescriptor = CType(e.Data.GetData
("FileGroupDescriptor"), System.IO.MemoryStream)
msFileContents = CType(e.Data.GetData("FileContents"),
System.IO.MemoryStream)
End If


I checked up the getdata contents in the quick watch and found they are
alls Memory streams. How to save these streams as files as there is no
information on type of data (tif image / pdf document etc..) and file
names.

Thanks,
Ramana
 
Back
Top