473,387 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DragDrop Outlook emails

Has anybody figured out how to drag and drop directly from Outlook to their
application using C# and get the information associated with the message..?
I am fine with files and text, but for some reason I cannot seem to find
the data in the IDataObject that relates to the email content.

Thanks

G
Nov 15 '05 #1
2 3171
GMoney (are you part of G-Unit),

The IDataObject interface has the GetFormats method. Have you tried
looking through the different formats and seeing if one has text content you
can work with?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"GMoney" <ga**********@bureauxltd.co.uk> wrote in message
news:op**************@msnews.microsoft.com...
Has anybody figured out how to drag and drop directly from Outlook to their application using C# and get the information associated with the message..? I am fine with files and text, but for some reason I cannot seem to find
the data in the IDataObject that relates to the email content.

Thanks

G

Nov 15 '05 #2
Thanks Nicholas... I have looked through these and I don't seem to get
anything meaningful (I do get a psuedo message header, but that is about
it).(I know I have already sent this to you, but I thought I had better
carry the thread on with answers)....
Umm the types I am getting are these...
? e.Data.GetFormats() {Length=9}
[0]: "RenPrivateSourceFolder"
[1]: "RenPrivateMessages"
[2]: "FileGroupDescriptor"
[3]: "FileGroupDescriptorW"
[4]: "FileContents"
[5]: "Object Descriptor"
[6]: "System.String"
[7]: "UnicodeText"
[8]: "Text"
The RenPrivateMessages outputs a MemoryStream that I have suck straight into
a textstream which has a decent length, but all the characters are just
zeros...
The text and UnicodeText and System.String all seem to output this 'psuedo
header':? e.Data.GetData("Text")

"From\tSubject\tReceived\tSize\t\r\nJacques Rossouw\tPath\t09:23\t18 KB\t"
Any ideas....
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bob | last post by:
Hi Everybody A tough one!!! Is there any way that incoming eMails (MailItems) into Ms Outlook can be used to automatically create records in a ms Access table or sub table. Smiley Bob
3
by: Curious George the Monkey | last post by:
Hi, I have about 20,000 emails of which about 1% of them have attached word, excel, jpeg, pdf, powerpoint files. The emails are located in about 1000 folders. The hierachy of folders is...
3
by: Strasser | last post by:
In Access2000 mass emailing worked perfectly (very powerful tool!). Doesn't work when using XP version of both Access and Outlook, even though I checked the box to ensure that I was sending the...
0
by: GMoney | last post by:
Has anybody figured out how to drag and drop directly from Outlook to their application using C# and get the information associated with the message..? I am fine with files and text, but for some...
0
by: Eric St-Onge | last post by:
Hi, I need to dragdrop message items from Outlook (2002 and 2003) to my application. I successfully implemented DragDrop from Explorer to MyApp but I didnt find how to properly code...
1
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files...
7
by: Dean Spencer | last post by:
Can anyone help? I am importing Emails from Outlook using the following code: Public Function ScanInbox(SubjectLine As String) Dim TempRst As Recordset Dim OlApp As Outlook.Application Dim...
6
by: AMP | last post by:
I am trying to write a windows sevice that will send emails. The data is stored in a database and the service scans the database for new entries It work well as a stardard windows app, but when...
6
by: =?Utf-8?B?UmljaA==?= | last post by:
How to suppress the Outlook 2003 security prompts from VB2005. When I tried to look at the body of a message or any other part of an outlook mailItem -- I get these annoying security prompts. I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.