Drag and Drop mails from Outlook to Clarion6 Application

P

Peter

I have been looking on the internet to solve my drag and drop problem.
We have a Clarion Winapp application build in Clarion6 (win32). It is partly
programmed in ABC and partly still in legacy.
We are able to drag and drop any file from the windows desktop or file
explorer, including msg files. Our users would like drag and drop mails
directly from outlook to our Clarion app. As you might know, this does not
work without extra coding.

Who can help?
 
D

Dmitry Streblechenko

Whe nyou drag a message from Outlook, you get multiple drag/drop formats,
one of them will be the regular file, which is just an MSG file.
You can open an MSG file using RDOsession.GetMessageFromMsgFile in
Redemption
You can also cheat my assuming that for a message to be dragged from
Outlook, it needs to be selected first, which means you can use the
Application.ActiveExplorer.Selection collection.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
P

Peter

Dmitry,
I am not sure what to do with your answer:
# Does it mean we need to use the Outlook Redemption functions?
# Can it be done without Redemption?
# It does not addres our specific Clarion question on drag and drop.

Hopefully you are able to provide more info.
 
D

Dmitry Streblechenko

See below

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Peter said:
Dmitry,
I am not sure what to do with your answer:
# Does it mean we need to use the Outlook Redemption functions?
No.

# Can it be done without Redemption?

Yes. You would need to read the MSG file contents or use the
Application.ActiveExplorer.Selection trick
# It does not addres our specific Clarion question on drag and drop.

I know nothing about Clarion, sorry. But I can answer Outlook specific
questions.
 
P

Peter van de Kragt

Dmitry,
let me rephrase the question a little bit.
Do you know of any DLL's that are able to export the selected mail in
Outlook in MSG format in a directory of choice?
That way we can turn the proces around:
Firstly select the mail in Outlook.
Secondly start a funtion in Clarion to export the mail to a certain
directory and after that link it into the clarion application.

Peter
 
D

Dmitry Streblechenko

If you can access the Outlook Object Model in Clarion, you shoudl be able to
loop through the items in the Application.ActiveExplorer.Selection
collection and call SaveAs for each item.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top