PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

C#.Net Outlook 2003 automation (programmatically) with Office.Inte

 
 
=?Utf-8?B?cm9i?=
Guest
Posts: n/a
 
      13th Feb 2007
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook

Problem:
I have my outlook 2003 configured with multiple mailbox on my local machine.
I want to specify the mailbox and server (Exchange server mail box)
to connect and then save the mailitems(from Inbox or any other folder)
based on a filter to a*.msg file.
I want to achieve this using only one Interop dll if this is possible.

Tried so far:
I have tried using both Outlook 11.0 object library
(Microsoft.Office.Interop.Outlook)
and Interop.MAPI dll but have not been successful to connect to a different
mailbox and save to *.msg file using only Interop.Outlook or Interop.MAPI.

Using Microsoft.Office.Interop.Outlook:
I have been able to save the defaultfolder(Inbox) to *.msg files
but I want to change the default mailbox to a second mailbox like
username2 instead of default mailbox username1.
How do I accomplish this using automation from C#.Net using
Microsoft.Office.Interop.Outlook?

Other Workaround using Interop.MAPI dll:
I have been able to connect using the Session.Logon of the interop.MAPI dll
but the mapi dll object model does not allow the messages to be saved to
*.msg file.
Any workaround using Interop.MAPI dll?

Any ideas/suggestions are welcome.

Thanks
Rob


 
Reply With Quote
 
 
 
 
pfc_sadr@hotmail.com
Guest
Posts: n/a
 
      16th Feb 2007
use VBA with Office, you ****ing NooB

do you do everything that MS tries to shove down your throat?

IS UNNECESSARY CHANGE SEXY?
IS UNNECESSARY CHANGE SIMPLE?


On Feb 13, 10:39 am, rob <r...@discussions.microsoft.com> wrote:
> C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook
>
> Problem:
> I have my outlook 2003 configured with multiple mailbox on my local machine.
> I want to specify the mailbox and server (Exchange server mail box)
> to connect and then save the mailitems(from Inbox or any other folder)
> based on a filter to a*.msg file.
> I want to achieve this using only one Interop dll if this is possible.
>
> Tried so far:
> I have tried using both Outlook 11.0 object library
> (Microsoft.Office.Interop.Outlook)
> and Interop.MAPI dll but have not been successful to connect to a different
> mailbox and save to *.msg file using only Interop.Outlook or Interop.MAPI.
>
> Using Microsoft.Office.Interop.Outlook:
> I have been able to save the defaultfolder(Inbox) to *.msg files
> but I want to change the default mailbox to a second mailbox like
> username2 instead of default mailbox username1.
> How do I accomplish this using automation from C#.Net using
> Microsoft.Office.Interop.Outlook?
>
> Other Workaround using Interop.MAPI dll:
> I have been able to connect using the Session.Logon of the interop.MAPI dll
> but the mapi dll object model does not allow the messages to be saved to
> *.msg file.
> Any workaround using Interop.MAPI dll?
>
> Any ideas/suggestions are welcome.
>
> Thanks
> Rob



 
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
Re: Outlook Automation, Office 2007 Piet Linden Microsoft Access VBA Modules 1 9th Jun 2009 08:06 AM
C#.Net Outlook 2003 automation (programmatically) with Interop =?Utf-8?B?cm9i?= Microsoft Outlook Interoperability 3 13th Feb 2007 09:36 PM
Outlook Office 7 beta version using a VPN can't connect to inte =?Utf-8?B?QXJ0aHVy?= Microsoft Outlook Discussion 0 2nd Sep 2006 06:41 PM
Office automation for 2003 SF Microsoft Access 1 13th Apr 2006 04:25 AM
Microsoft Office Word 2003 Automation in ASP.NET Pages Stelios Skiathitis Microsoft ASP .NET 1 25th May 2005 02:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:43 AM.