Solved

Drag message from Outlook to VB6 control

Posted on 2004-10-20
4
892 Views
Last Modified: 2008-02-01
This has surfaced a few times, but none of the posts seem to get me any closer.

I have a VB6 app connected to MS SQL. I need to be able to drag an email message from Outlook or Outlook Express onto a control on a form. This email message is then to be stored in the database (I don't care about attachments).

I do not wish to use the Outlook object model as some users are on Express.

OLEDragDrop to a rich text box produces text. This is messy if the message is in HTML format. It also fails to produce the body when dragging from Outlook 2000.

If I drag the message from Outlook to Windows Explorer, it creates a file. I can then drag this into a rich text box as a file. However, this 2-step process will not be acceptable to end users. I need the dragdrop straight from Outlook/Express to my app.

Somebody please tell me if this isn't possible as it's been driving me nuts all afternoon.
0
Comment
Question by:mikefish
4 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 12362768
0
 

Author Comment

by:mikefish
ID: 12367238
thanks. This works well for attachments and has saved much frustration from trying the VB-only route. However, I need to be able to drag .eml or .msg files (not worried about attachments) from Outlook or Express. I would imagine that the C++ code needs modifying, which I'm not up to. Any pointers?
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12624119
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now