PC Review


Reply
Thread Tools Rate Thread

Can I use RDO to replace all my Outlook Interop objects?

 
 
Michael H
Guest
Posts: n/a
 
      15th Feb 2006

Hi all,

I wrote code to retreive a Microsoft.Office.Interop.Outlook.MailItem
object from an ID value using by it's MailItem.EntryID value by using
this method from the NameSpace interface.

object GetItemFromID(string EntryIDItem, object EntryIDStore);


My question to all your clever folks is can I avoid the
Outlook.Interop stuff all together and replace it with RDO?
I would prefer to just distribute the Redemption library and not worry
about whether each pc has .NET Programmability Support installed or if
I need to distribute the Outlook Interop DLL as well. Of course, I can
distribute both Redemption and the Outlook Interop but this would be a
last resort fore I have some other third party DLLs that I'm working
w/ too. Thanks a lot, all.


sample code:
---------------

using Microsoft.Office.Interop.Outlook;

....
....

MailItem item;
NameSpace olNameSpace;
ApplicationClass olApplication;
Redemption.SafeMailItem safeItem;


olApplication = new ApplicationClass();
olNameSpace = olApplication.GetNamespace("MAPI");

item = (MailItem) olNameSpace.GetItemFromID(strEntryID, null);

safeItem = new SafeMailItem();
safeItem.Item = item;
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      15th Feb 2006
RDO is a COM object. It would also have to be used via the COM Interop as
far as I know.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> Hi all,
>
> I wrote code to retreive a Microsoft.Office.Interop.Outlook.MailItem
> object from an ID value using by it's MailItem.EntryID value by using
> this method from the NameSpace interface.
>
> object GetItemFromID(string EntryIDItem, object EntryIDStore);
>
>
> My question to all your clever folks is can I avoid the
> Outlook.Interop stuff all together and replace it with RDO?
> I would prefer to just distribute the Redemption library and not worry
> about whether each pc has .NET Programmability Support installed or if
> I need to distribute the Outlook Interop DLL as well. Of course, I can
> distribute both Redemption and the Outlook Interop but this would be a
> last resort fore I have some other third party DLLs that I'm working
> w/ too. Thanks a lot, all.
>
>
> sample code:
> ---------------
>
> using Microsoft.Office.Interop.Outlook;
>
> ...
> ...
>
> MailItem item;
> NameSpace olNameSpace;
> ApplicationClass olApplication;
> Redemption.SafeMailItem safeItem;
>
>
> olApplication = new ApplicationClass();
> olNameSpace = olApplication.GetNamespace("MAPI");
>
> item = (MailItem) olNameSpace.GetItemFromID(strEntryID, null);
>
> safeItem = new SafeMailItem();
> safeItem.Item = item;


 
Reply With Quote
 
Michael H
Guest
Posts: n/a
 
      16th Feb 2006
On Wed, 15 Feb 2006 10:40:49 -0500, "Ken Slovak - [MVP - Outlook]"
<(E-Mail Removed)> wrote:

-> RDO is a COM object. It would also have to be used via the COM
Interop as
-> far as I know.


Can I use RDO (Interoped RDO) instead of the Outlook Interop though
for instantiating an Application, NameSpace, and MailItem ?


Michael
 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      16th Feb 2006
You can certainly use RDO instead of Outlook but then you're completely in
RDO, just as if you had written a CDO 1.21 only application. You would have
to logon to the RDOSession (no NameSpace) and go from there.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael H" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Wed, 15 Feb 2006 10:40:49 -0500, "Ken Slovak - [MVP - Outlook]"
> <(E-Mail Removed)> wrote:
>
> -> RDO is a COM object. It would also have to be used via the COM
> Interop as
> -> far as I know.
>
>
> Can I use RDO (Interoped RDO) instead of the Outlook Interop though
> for instantiating an Application, NameSpace, and MailItem ?
>
>
> Michael


 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you Pass an array of Objects from C# to VB6 (interop) Williams.sam@gmail.com Microsoft C# .NET 1 21st Oct 2005 04:21 PM
com interop and error objects =?Utf-8?B?cm9iZXJ0Uw==?= Microsoft Dot NET Compact Framework 4 5th Jul 2005 11:27 PM
Addin will not load when I pass Interop Outlook objects to objects to ctors outside the addin Ben MacLeod Microsoft Outlook Interoperability 0 18th Aug 2004 03:17 PM
COM interop - disposing COM objects C# beginner Microsoft C# .NET 1 23rd Feb 2004 08:09 PM
COM Interop - Cannot instantiate objects Bobby C. Jones Microsoft C# .NET 4 10th Sep 2003 03:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:48 PM.