Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drag and Drop E-Mail messages from Outlook to Delphi App.

1,038 views
Skip to first unread message

Nir Kornfeld

unread,
Dec 3, 2002, 5:22:25 AM12/3/02
to
Hello,

I'm looking for a way to enable dropping of E-Mail messages from
Outlook/Outlook Express to my Delphi App (Delphi 5).
I need my application to behave like the Windows Desktop, and create a .EML
or .MSG file somewhere on the local drive.

I've tried working with the "Drag and Drop Component Suite v.4.0" but failed
to access the message data and/or save it to a file on the disk.

Can anyone help me?

Thanks,

Nir Kornfeld.


Christian NineBerry Schwarz

unread,
Dec 3, 2002, 6:12:01 AM12/3/02
to
Hi Nir

Nir Kornfeld schrieb:

> I'm looking for a way to enable dropping of E-Mail messages from
> Outlook/Outlook Express to my Delphi App (Delphi 5).

> I've tried working with the "Drag and Drop Component Suite v.4.0"
> but failed

Works fine for me:

procedure TForm1.DropTextTarget1Drop(Sender: TObject;
ShiftState: TShiftState; Point: TPoint; var Effect: Integer);
begin
Memo1.Lines.Text:= (Sender as TDropTextTarget).Text;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
DropTextTarget1.Register(Memo1);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
DropTextTarget1.UnRegister(Memo1);
end;

// You may have forgotten that:
procedure TForm1.DropTextTarget1GetDropEffect(Sender: TObject;
ShiftState: TShiftState; APoint: TPoint; var Effect: Integer);
begin
Effect:= DROPEFFECT_COPY;
end;


Traubensaft gibt Traubenkraft

Christian "NineBerry" Schwarz

--
To leave is never easy
Perhaps it shouldn't be
But return is even harder
Yes, return is harder still

Anders Melander

unread,
Dec 3, 2002, 9:05:39 PM12/3/02
to
Nir Kornfeld wrote:

>Anyway, I'm looking for a way to create the .EML file (or .MSG) when
>dropping messages. I need this file so I will be able to store it, and
>access it later.

You should use the TDropComboTarget component instead. See the ComboTargetDemo
application for an example of how to use it.

Outlook supplies the dragged messages via the "FileGroupDescriptor" and
"FileContents" clipboard formats and the TDropComboTarget component knows how to
deal with those.
---
DIXI

Anders Melander
Software Developer
Denmark

Nir Kornfeld

unread,
Dec 4, 2002, 3:43:19 AM12/4/02
to
Anders,

Thank you, I will try this. Is there a place where I can get the updated
Help file? I have an older help file (from version 3.6) and some components
are not included there.

Thank you again,

Nir.


"Anders Melander" <and...@aztech.dk> wrote in message
news:3ded602a....@newsgroups.borland.com...

Nir Kornfeld

unread,
Dec 4, 2002, 5:49:46 AM12/4/02
to
Anders,

The DropCombo demo program DOES accept messages from Outlook Express, but
when I'm trying to drag an Outlook message, I DO get the drop cursor icon,
but nothing happens. Even the DropEvent is not fired.
What can be the reason for that?

Thanks,

Nir.

"Anders Melander" <and...@aztech.dk> wrote in message
news:3ded602a....@newsgroups.borland.com...

Anders Melander

unread,
Dec 4, 2002, 6:13:11 AM12/4/02
to
Nir Kornfeld wrote:

>The DropCombo demo program DOES accept messages from Outlook Express, but
>when I'm trying to drag an Outlook message, I DO get the drop cursor icon,
>but nothing happens. Even the DropEvent is not fired.
>What can be the reason for that?

A bug probably. I'll try to reproduce and get back to you ASAP.

Anders Melander

unread,
Dec 4, 2002, 6:11:52 AM12/4/02
to
Nir Kornfeld wrote:

>Is there a place where I can get the updated Help file?

I haven't got a new site up yet, so I'll mail it to you. It's for v4.1 and still
incomplete, but I guess it's better than what you have now.

Nir Kornfeld

unread,
Dec 4, 2002, 6:33:50 AM12/4/02
to
Anders,
I've found out that when I add the Custom data type it does accept drops
from Outlook, but nothing happens. It seems outlook stores its .MSG files in
a different format....

I'm looking for a way to store these files into a stream. Both from Outlook
and Outlook Express (and even other similar mail programs).

Thank you for the effort,

Nir Kornfeld (Email: n...@od.co.il)


"Anders Melander" <and...@aztech.dk> wrote in message

news:3deee2fb....@newsgroups.borland.com...

Anders Melander

unread,
Dec 4, 2002, 7:02:08 PM12/4/02
to
Nir Kornfeld wrote:

>I've found out that when I add the Custom data type it does accept drops
>from Outlook, but nothing happens. It seems outlook stores its .MSG files in
>a different format....

It works with v4.1FT6. I've mailed this version to you.

Tomislav Kardaš

unread,
Dec 16, 2002, 4:15:27 AM12/16/02
to
Hi Anders!

On Wed, 04 Dec 2002 02:05:39 GMT, and...@aztech.dk (Anders Melander)
wrote:

>You should use the TDropComboTarget component instead. See the ComboTargetDemo
>application for an example of how to use it.

Where can I find this component: TDropComboTarget?

tomi

Anders Melander

unread,
Dec 16, 2002, 8:47:23 PM12/16/02
to
Tomislav Kardaš wrote:

>Where can I find this component: TDropComboTarget?

It's included in version 4 of the Drag and Drop Component Suite.

Olivier Ducrocq

unread,
Dec 19, 2002, 12:41:03 PM12/19/02
to
and...@aztech.dk (Anders Melander) wrote in message news:<3df19757....@newsgroups.borland.com>...

Is it possible to mail to me this version v4.1FT6? I am actually use v3.7.

Thanks a lot

Olivier DUCROCQ
France

0 new messages