Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get name of currently opened Outlook profile

3 views
Skip to first unread message

Stop method of Sync object is not workin

unread,
Oct 5, 2009, 3:29:01 PM10/5/09
to
Hi All,

Can any one suggest me programatically how to get currently opened outlook
profile. I am using Outlook 2003.

Thanks in advance.

Dmitry Streblechenko

unread,
Oct 6, 2009, 5:19:52 PM10/6/09
to
What programming language/API are you using?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Stop method of Sync object is not workin"
<StopmethodofSync...@discussions.microsoft.com> wrote in
message news:02E04A57-2297-44DD...@microsoft.com...

rakibhasan

unread,
Nov 9, 2009, 7:37:59 AM11/9/09
to
I am using C# 2.0 to create an Outlook 2003 Shared Addin. And From the addin, i need to know the name of the profile.
How can i do it?

Dmitry Streblechenko wrote:

What programming language/API are you using?

06-Oct-09

What programming language/API are you using?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Stop method of Sync object is not workin"

Previous Posts In This Thread:

On Monday, October 05, 2009 3:29 PM
Stop method of Sync object is not workin wrote:

How to get name of currently opened Outlook profile
Hi All,

Can any one suggest me programatically how to get currently opened outlook
profile. I am using Outlook 2003.

Thanks in advance.

On Tuesday, October 06, 2009 5:19 PM
Dmitry Streblechenko wrote:

What programming language/API are you using?
What programming language/API are you using?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Stop method of Sync object is not workin"

EggHeadCafe - Software Developer Portal of Choice
SQL Server - UDF for Business Days Calculation
http://www.eggheadcafe.com/tutorials/aspnet/53ec2731-95ca-46bf-82bc-ffd2a06bb67e/sql-server--udf-for-busi.aspx

Ken Slovak - [MVP - Outlook]

unread,
Nov 9, 2009, 9:10:58 AM11/9/09
to
That's not exposed in the Outlook object model in Outlook 2003. You can get
it using Extended MAPI, but that's not supported for managed code, only for
C++ or Delphi. If you are using Redemption (www.dimastr.com/redemption) you
can use that to get the profile name.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


<Rakib Hasan> wrote in message news:20091197375...@gmail.com...

Dmitry Streblechenko

unread,
Nov 13, 2009, 5:02:16 PM11/13/09
to
Outlook 2007 exposes tha tthrough the Namespace.CurrentProfileName property.
If you are using Redemption in Outlook 2002 or higher, you can use something
like the following:

set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
MsgBox Session.ProfileName

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

"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message
news:O%23sA7ZUY...@TK2MSFTNGP06.phx.gbl...

0 new messages