HOWTO Programmatically save emails in Outlook from an EXE.

HOWTO Programmatically save emails in Outlook from an EXE.

Post by QVRT » Fri, 05 May 2006 03:33:01


HOWTO Programmatically save emails in Outlook from an EXE.

Please help,

My company is trying to make Outlook programmatically save emails to file.
Emails that are selected by the user in Outlook, AND an email a user has
currently open. We want to do this from an external EXE, where the EXE would
be run by the user, and activate when a Hot-Key was pressed.

We believe the best hope is IAccessible to some interface in Outlook. I know
Outlook supports IAccessible, and from an external EXE, one can use Outlook's
HWND or even AccessibleObjectFromPoint to get the IAccessible object of
Outlook, but from there, I do no know what could be done. In IE, I can do
this to get the DOM of the browser using IAccessible's QueryService to get
either an IHTMLElement or an IHTMLWindow object. But for Outlook, I do not
have any reference. I've posted this in the MS-Office forum, but they could
not help.

Any ideas?
 
 
 

HOWTO Programmatically save emails in Outlook from an EXE.

Post by Ajay Kalr » Fri, 05 May 2006 03:41:12

Outlook has a rich object model which will certainly allow you do to
what you want. Ask this in Outlook related newsgroup. You will use
COM/Automation to do this.

----
Ajay

 
 
 

HOWTO Programmatically save emails in Outlook from an EXE.

Post by AliR » Fri, 05 May 2006 03:48:00

This should be good start too

http://www.yqcomputer.com/

AliR.



would
know
Outlook's
could