PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins saving Oulook.MailItem objects

Reply

saving Oulook.MailItem objects

 
Thread Tools Rate Thread
Old 08-07-2003, 02:33 PM   #1
Inon Zukerman
Guest
 
Posts: n/a
Default saving Oulook.MailItem objects


hello everyone.

My problem is as follows :

my application keeps a hashtable with Outlook.MailItem objects.
I need to save and load this hashtable (with those objects inside) when
starting and terminating the
application.

I can't "serialize" them because Outlook.MailItem objects do not implement
the Iserializable interface.

so how do I go about saving and loading the hastable with the objects ??
(or even just tell me how to access the binary stream that compose each
Outlook.MailItem object)


I'm stuck with this problem for almost 3 days without any lead ... PLEASE
HELP !!!

Thanks alot
Inon


  Reply With Quote
Old 08-07-2003, 08:12 PM   #2
Dmitry Streblechenko
Guest
 
Posts: n/a
Default Re: saving Oulook.MailItem objects

You can save the message as an MSG file (MailItem.SaveAs(..., olMsg)) and
then import it using Application.CreateItemFromTemplate().

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


"Inon Zukerman" <inonzuk@hotmail.com> wrote in message
news:OVVgb3VRDHA.1804@TK2MSFTNGP11.phx.gbl...
> hello everyone.
>
> My problem is as follows :
>
> my application keeps a hashtable with Outlook.MailItem objects.
> I need to save and load this hashtable (with those objects inside) when
> starting and terminating the
> application.
>
> I can't "serialize" them because Outlook.MailItem objects do not implement
> the Iserializable interface.
>
> so how do I go about saving and loading the hastable with the objects ??
> (or even just tell me how to access the binary stream that compose each
> Outlook.MailItem object)
>
>
> I'm stuck with this problem for almost 3 days without any lead ... PLEASE
> HELP !!!
>
> Thanks alot
> Inon
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off