HOWTO Programmatically Save an Email from IAccessible

A

ATS

HOWTO Programmatically Save an Email from IAccessible.

Please help,

I am trying to make Outlook 2000 save an email programmatically where the
email is either selected in Outllook's Inbox, or is currently being viewed.
My problem is that I can only use these functions to "interface" with Outlook
2000.

WindowFromPoint
AccessibleObjectFromPoint
AccessibleObjectFromWindow

In the scenario I am in, I use one of those 3 functions and I can get the
HWND of any window Outlook has visible, Any IAccessible object Outlook has
for any visible point, and/or an IDispatch pointer to the "Text Object
Model's (TOM)" ITextDocument object. But despite being able to get all these
objects, I do not know how to get from them the IMailItem which has the
method "SaveAs", or Outlook's IApplication/IDocument objects which in turn
would let me get the active document and then use "SaveAs" on selected emails.

Any ideas?
 

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