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.
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
>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
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...
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...
>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.
>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.
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...
>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.
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
>Where can I find this component: TDropComboTarget?
It's included in version 4 of the Drag and Drop Component Suite.
Is it possible to mail to me this version v4.1FT6? I am actually use v3.7.
Thanks a lot
Olivier DUCROCQ
France