PC Review


Reply
Thread Tools Rate Thread

accessing outlook user profiles from VB.net

 
 
=?Utf-8?B?U3Jpbml2YXM=?=
Guest
Posts: n/a
 
      4th Mar 2004
hi all
how to access the outlook user profiles through VB.net
any help....

thanks in advanc

Srinivas
 
Reply With Quote
 
 
 
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      4th Mar 2004
Srinivas,
Is this related to the question you asked last week (titled "Urgent: Outlook
with VB.NET")?

Did what I offered last week help at all? (you never responded).

If it is related, I recieved the following tidbits:

<quote>
These scenarios are typically problematic for Outlook object model.
Imagine if they have something like ActiveSync installed... My offhand
suggestions:

1. CDO's typically a better choice for multiple-profile scenarios.

2. I'm wild-guessing it's a PST-type scenario, but if it's a relatively
limited amount of Exchange mailboxes, he may want to consider delegate
access instead (and then GetSharedDefaultFolder).
</quote>

Either way: The following site provides a plethora of information on using
Outlook from VB.NET:

http://www.microeye.com/resources/res_outlookvsnet.htm

Or are you asking about the Profile information itself?

Hope this helps
Jay

"Srinivas" <(E-Mail Removed)> wrote in message
news:CDED26BE-8A65-444C-8204-(E-Mail Removed)...
> hi all,
> how to access the outlook user profiles through VB.net?
> any help.....
>
> thanks in advance
>
> Srinivas



 
Reply With Quote
 
=?Utf-8?B?U3Jpbml2YXM=?=
Guest
Posts: n/a
 
      5th Mar 2004
hi jay
thanks a lot for the reply...
sorry... i could't reply for the previous post,that helped me in solving the outlook session problem

In the present scenario,...i'm using the outlook object librar
now the situation will be like this
In my application the user id and user outlook profile name will be stored in database...so whenever user logs into the application there's a mapping between the profile name from the database and the existing outlook profiles
If the value matches with one of the existing outlook profiles...he will be logged with that profile...
else a message to the user will be shown saying that 'Profile not found'
i did't try with the CDO..

So it's enough for me to retrieve the outlook profile names......

Regard
Sriniva

 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      5th Mar 2004
Srinivas,
Is this server side or client side?

Is this with Exchange Server or without?

If its server side & Exchange Server I would use CDO & dynamic profiles,
then all you need is the mailbox & password in your database.

I'm checking to see if an example exists on how to get the list of profiles.

Hope this helps
Jay

"Srinivas" <(E-Mail Removed)> wrote in message
news:E9D2A2B6-62E7-4005-B61F-(E-Mail Removed)...
> hi jay,
> thanks a lot for the reply....
> sorry... i could't reply for the previous post,that helped me in solving

the outlook session problem.
>
> In the present scenario,...i'm using the outlook object library
> now the situation will be like this:
> In my application the user id and user outlook profile name will be stored

in database...so whenever user logs into the application there's a mapping
between the profile name from the database and the existing outlook
profiles.
> If the value matches with one of the existing outlook profiles...he will

be logged with that profile....
> else a message to the user will be shown saying that 'Profile not found'.
> i did't try with the CDO...
>
> So it's enough for me to retrieve the outlook profile names.......
>
> Regards
> Srinivas
>



 
Reply With Quote
 
=?Utf-8?B?U3Jpbml2YXM=?=
Guest
Posts: n/a
 
      5th Mar 2004
Thanks jay,
Right now it's not exchange server....but in future there's a chance for switching over to it


Regards
Srinivas
 
Reply With Quote
 
Duron
Guest
Posts: n/a
 
      6th Mar 2004
Hi Jay, I met a different problem. On my machine I can't even find
"Microsoft Outlook 10.0 Object Library" or any other version in my COM list!
I am using Outlook 2003.

Any solution? Thanks in advance.

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
news:%(E-Mail Removed) い级糶...
> Srinivas,
> Is this related to the question you asked last week (titled "Urgent:

Outlook
> with VB.NET")?
>
> Did what I offered last week help at all? (you never responded).
>
> If it is related, I recieved the following tidbits:
>
> <quote>
> These scenarios are typically problematic for Outlook object model.
> Imagine if they have something like ActiveSync installed... My offhand
> suggestions:
>
> 1. CDO's typically a better choice for multiple-profile scenarios.
>
> 2. I'm wild-guessing it's a PST-type scenario, but if it's a relatively
> limited amount of Exchange mailboxes, he may want to consider delegate
> access instead (and then GetSharedDefaultFolder).
> </quote>
>
> Either way: The following site provides a plethora of information on using
> Outlook from VB.NET:
>
> http://www.microeye.com/resources/res_outlookvsnet.htm
>
> Or are you asking about the Profile information itself?
>
> Hope this helps
> Jay
>
> "Srinivas" <(E-Mail Removed)> wrote in message
> news:CDED26BE-8A65-444C-8204-(E-Mail Removed)...
> > hi all,
> > how to access the outlook user profiles through VB.net?
> > any help.....
> >
> > thanks in advance
> >
> > Srinivas

>
>



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      6th Mar 2004
Duron,
If you want "Microsoft Outlook 10.0 Object Library" specifically, you will
need to install Outlook XP.

If you want to use Outlook 2003, you will need to use "Microsoft Outlook
11.0 Object Library".

With either library I would strongly recommend installing the appropriate
PIA (either the optional Outlook 2003 setup or the download from Micorosft
for Outlook XP). Once the PIA is installed simply referencing the above COM
Object Library will cause VS.NET to use the PIA.

For details on the PIA & other matters concerning Outlook with .NET see:
http://www.microeye.com/resources/res_outlookvsnet.htm

Hope this helps
Jay

"Duron" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Jay, I met a different problem. On my machine I can't even find
> "Microsoft Outlook 10.0 Object Library" or any other version in my COM

list!
> I am using Outlook 2003.
>
> Any solution? Thanks in advance.
>
> "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
> news:%(E-Mail Removed) い级糶...
> > Srinivas,
> > Is this related to the question you asked last week (titled "Urgent:

> Outlook
> > with VB.NET")?
> >
> > Did what I offered last week help at all? (you never responded).
> >
> > If it is related, I recieved the following tidbits:
> >
> > <quote>
> > These scenarios are typically problematic for Outlook object model.
> > Imagine if they have something like ActiveSync installed... My offhand
> > suggestions:
> >
> > 1. CDO's typically a better choice for multiple-profile scenarios.
> >
> > 2. I'm wild-guessing it's a PST-type scenario, but if it's a relatively
> > limited amount of Exchange mailboxes, he may want to consider delegate
> > access instead (and then GetSharedDefaultFolder).
> > </quote>
> >
> > Either way: The following site provides a plethora of information on

using
> > Outlook from VB.NET:
> >
> > http://www.microeye.com/resources/res_outlookvsnet.htm
> >
> > Or are you asking about the Profile information itself?
> >
> > Hope this helps
> > Jay
> >
> > "Srinivas" <(E-Mail Removed)> wrote in message
> > news:CDED26BE-8A65-444C-8204-(E-Mail Removed)...
> > > hi all,
> > > how to access the outlook user profiles through VB.net?
> > > any help.....
> > >
> > > thanks in advance
> > >
> > > Srinivas

> >
> >

>
>



 
Reply With Quote
 
Duron
Guest
Posts: n/a
 
      7th Mar 2004
Thanks Jay.

Actually I already had PIA installed (downloaded from Microsoft) according
to some MSDN document. Unfortunately no luck.

Followed the instructions I have created shared Office Add-ins and had it
run successfully everytime. The only problem is still that I just failed to
find "Microsoft Outlook 10.0 Object Library" or something like that in my
COM list!

Do you happen to know the exact file name for the "Microsoft Outlook
11.0 Object Library"? I tried many ways to find a file named
Interop.Outlook.dll, but when I tried to add this file manually VS.NET told
me this file is not recognized as a COM server. I don't know what more can I
do from here.

Duron

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
news:(E-Mail Removed) い级糶...
> Duron,
> If you want "Microsoft Outlook 10.0 Object Library" specifically, you will
> need to install Outlook XP.
>
> If you want to use Outlook 2003, you will need to use "Microsoft Outlook
> 11.0 Object Library".
>
> With either library I would strongly recommend installing the appropriate
> PIA (either the optional Outlook 2003 setup or the download from Micorosft
> for Outlook XP). Once the PIA is installed simply referencing the above

COM
> Object Library will cause VS.NET to use the PIA.
>
> For details on the PIA & other matters concerning Outlook with .NET see:
> http://www.microeye.com/resources/res_outlookvsnet.htm
>
> Hope this helps
> Jay
>
> "Duron" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi Jay, I met a different problem. On my machine I can't even find
> > "Microsoft Outlook 10.0 Object Library" or any other version in my COM

> list!
> > I am using Outlook 2003.
> >
> > Any solution? Thanks in advance.
> >
> > "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
> > news:%(E-Mail Removed) い级糶...
> > > Srinivas,
> > > Is this related to the question you asked last week (titled "Urgent:

> > Outlook
> > > with VB.NET")?
> > >
> > > Did what I offered last week help at all? (you never responded).
> > >
> > > If it is related, I recieved the following tidbits:
> > >
> > > <quote>
> > > These scenarios are typically problematic for Outlook object model.
> > > Imagine if they have something like ActiveSync installed... My offhand
> > > suggestions:
> > >
> > > 1. CDO's typically a better choice for multiple-profile scenarios.
> > >
> > > 2. I'm wild-guessing it's a PST-type scenario, but if it's a

relatively
> > > limited amount of Exchange mailboxes, he may want to consider delegate
> > > access instead (and then GetSharedDefaultFolder).
> > > </quote>
> > >
> > > Either way: The following site provides a plethora of information on

> using
> > > Outlook from VB.NET:
> > >
> > > http://www.microeye.com/resources/res_outlookvsnet.htm
> > >
> > > Or are you asking about the Profile information itself?
> > >
> > > Hope this helps
> > > Jay
> > >
> > > "Srinivas" <(E-Mail Removed)> wrote in message
> > > news:CDED26BE-8A65-444C-8204-(E-Mail Removed)...
> > > > hi all,
> > > > how to access the outlook user profiles through VB.net?
> > > > any help.....
> > > >
> > > > thanks in advance
> > > >
> > > > Srinivas
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Duron
Guest
Posts: n/a
 
      7th Mar 2004
I think I didn't put it very clearly. Sorry.

I did find 'Microsoft Outlook 11.0 Object Library' version 9.2 when I try to
Add Reference under the Project menu. I just failed to find and add this
item to my Toolbar to use this control.

"Duron" <(E-Mail Removed)> 秎ン
news:e7rpHe%(E-Mail Removed) い级糶...
> Thanks Jay.
>
> Actually I already had PIA installed (downloaded from Microsoft) according
> to some MSDN document. Unfortunately no luck.
>
> Followed the instructions I have created shared Office Add-ins and had it
> run successfully everytime. The only problem is still that I just failed

to
> find "Microsoft Outlook 10.0 Object Library" or something like that in my
> COM list!
>
> Do you happen to know the exact file name for the "Microsoft Outlook
> 11.0 Object Library"? I tried many ways to find a file named
> Interop.Outlook.dll, but when I tried to add this file manually VS.NET

told
> me this file is not recognized as a COM server. I don't know what more can

I
> do from here.
>
> Duron
>
> "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
> news:(E-Mail Removed) い级糶...
> > Duron,
> > If you want "Microsoft Outlook 10.0 Object Library" specifically, you

will
> > need to install Outlook XP.
> >
> > If you want to use Outlook 2003, you will need to use "Microsoft Outlook
> > 11.0 Object Library".
> >
> > With either library I would strongly recommend installing the

appropriate
> > PIA (either the optional Outlook 2003 setup or the download from

Micorosft
> > for Outlook XP). Once the PIA is installed simply referencing the above

> COM
> > Object Library will cause VS.NET to use the PIA.
> >
> > For details on the PIA & other matters concerning Outlook with .NET see:
> > http://www.microeye.com/resources/res_outlookvsnet.htm
> >
> > Hope this helps
> > Jay
> >
> > "Duron" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> > > Hi Jay, I met a different problem. On my machine I can't even find
> > > "Microsoft Outlook 10.0 Object Library" or any other version in my COM

> > list!
> > > I am using Outlook 2003.
> > >
> > > Any solution? Thanks in advance.
> > >
> > > "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
> > > news:%(E-Mail Removed) い级糶...
> > > > Srinivas,
> > > > Is this related to the question you asked last week (titled "Urgent:
> > > Outlook
> > > > with VB.NET")?
> > > >
> > > > Did what I offered last week help at all? (you never responded).
> > > >
> > > > If it is related, I recieved the following tidbits:
> > > >
> > > > <quote>
> > > > These scenarios are typically problematic for Outlook object model.
> > > > Imagine if they have something like ActiveSync installed... My

offhand
> > > > suggestions:
> > > >
> > > > 1. CDO's typically a better choice for multiple-profile scenarios.
> > > >
> > > > 2. I'm wild-guessing it's a PST-type scenario, but if it's a

> relatively
> > > > limited amount of Exchange mailboxes, he may want to consider

delegate
> > > > access instead (and then GetSharedDefaultFolder).
> > > > </quote>
> > > >
> > > > Either way: The following site provides a plethora of information on

> > using
> > > > Outlook from VB.NET:
> > > >
> > > > http://www.microeye.com/resources/res_outlookvsnet.htm
> > > >
> > > > Or are you asking about the Profile information itself?
> > > >
> > > > Hope this helps
> > > > Jay
> > > >
> > > > "Srinivas" <(E-Mail Removed)> wrote in message
> > > > news:CDED26BE-8A65-444C-8204-(E-Mail Removed)...
> > > > > hi all,
> > > > > how to access the outlook user profiles through VB.net?
> > > > > any help.....
> > > > >
> > > > > thanks in advance
> > > > >
> > > > > Srinivas
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      7th Mar 2004
Duron,
This is even less clear ;-)

What do you mean by "my Toolbar"? The toolbox used to add controls to a
Form?

The Outlook object model does not contain any controls to add to a Form,
Outlook itself has the Outlook View Control, however it is not part of the
'Microsoft Outlook 11.0 Object Library'.

If you want to use the Outlook View Control, you need to customize the
toolbox & select the Outlook View Control.

> > Do you happen to know the exact file name for the "Microsoft Outlook
> > 11.0 Object Library"? I tried many ways to find a file named
> > Interop.Outlook.dll, but when I tried to add this file manually VS.NET

If you are using the PIA there will not be an IA (aka Interop.Outlook.dll).
Note you will use the PIA if one is installed!

A PIA is a primary interop assembly, it will normally be installed to the
GAC (Global Assembly Cache), where as an IA is an interop assembly, VS.NET
will create an IA for you, in this case called Interop.Outlook.dll and add
it to your project. An IA should "never" be added to the GAC. Note: Adam
Nathan's book ".NET and COM - The Complete Interoperability Guide" on when
and how to add an IA to the GAC and why you should not...

Hope this helps
Jay

"Duron" <(E-Mail Removed)> wrote in message
news:eaWzCl%(E-Mail Removed)...
> I think I didn't put it very clearly. Sorry.
>
> I did find 'Microsoft Outlook 11.0 Object Library' version 9.2 when I try

to
> Add Reference under the Project menu. I just failed to find and add this
> item to my Toolbar to use this control.
>
> "Duron" <(E-Mail Removed)> 秎ン
> news:e7rpHe%(E-Mail Removed) い级糶...
> > Thanks Jay.
> >
> > Actually I already had PIA installed (downloaded from Microsoft)

according
> > to some MSDN document. Unfortunately no luck.
> >
> > Followed the instructions I have created shared Office Add-ins and had

it
> > run successfully everytime. The only problem is still that I just failed

> to
> > find "Microsoft Outlook 10.0 Object Library" or something like that in

my
> > COM list!
> >
> > Do you happen to know the exact file name for the "Microsoft Outlook
> > 11.0 Object Library"? I tried many ways to find a file named
> > Interop.Outlook.dll, but when I tried to add this file manually VS.NET

> told
> > me this file is not recognized as a COM server. I don't know what more

can
> I
> > do from here.
> >
> > Duron
> >
> > "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
> > news:(E-Mail Removed) い级糶...
> > > Duron,
> > > If you want "Microsoft Outlook 10.0 Object Library" specifically, you

> will
> > > need to install Outlook XP.
> > >
> > > If you want to use Outlook 2003, you will need to use "Microsoft

Outlook
> > > 11.0 Object Library".
> > >
> > > With either library I would strongly recommend installing the

> appropriate
> > > PIA (either the optional Outlook 2003 setup or the download from

> Micorosft
> > > for Outlook XP). Once the PIA is installed simply referencing the

above
> > COM
> > > Object Library will cause VS.NET to use the PIA.
> > >
> > > For details on the PIA & other matters concerning Outlook with .NET

see:
> > > http://www.microeye.com/resources/res_outlookvsnet.htm
> > >
> > > Hope this helps
> > > Jay
> > >
> > > "Duron" <(E-Mail Removed)> wrote in message
> > > news:(E-Mail Removed)...
> > > > Hi Jay, I met a different problem. On my machine I can't even find
> > > > "Microsoft Outlook 10.0 Object Library" or any other version in my

COM
> > > list!
> > > > I am using Outlook 2003.
> > > >
> > > > Any solution? Thanks in advance.
> > > >
> > > > "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> 秎ン
> > > > news:%(E-Mail Removed) い级糶...
> > > > > Srinivas,
> > > > > Is this related to the question you asked last week (titled

"Urgent:
> > > > Outlook
> > > > > with VB.NET")?
> > > > >
> > > > > Did what I offered last week help at all? (you never responded).
> > > > >
> > > > > If it is related, I recieved the following tidbits:
> > > > >
> > > > > <quote>
> > > > > These scenarios are typically problematic for Outlook object

model.
> > > > > Imagine if they have something like ActiveSync installed... My

> offhand
> > > > > suggestions:
> > > > >
> > > > > 1. CDO's typically a better choice for multiple-profile scenarios.
> > > > >
> > > > > 2. I'm wild-guessing it's a PST-type scenario, but if it's a

> > relatively
> > > > > limited amount of Exchange mailboxes, he may want to consider

> delegate
> > > > > access instead (and then GetSharedDefaultFolder).
> > > > > </quote>
> > > > >
> > > > > Either way: The following site provides a plethora of information

on
> > > using
> > > > > Outlook from VB.NET:
> > > > >
> > > > > http://www.microeye.com/resources/res_outlookvsnet.htm
> > > > >
> > > > > Or are you asking about the Profile information itself?
> > > > >
> > > > > Hope this helps
> > > > > Jay
> > > > >
> > > > > "Srinivas" <(E-Mail Removed)> wrote in message
> > > > > news:CDED26BE-8A65-444C-8204-(E-Mail Removed)...
> > > > > > hi all,
> > > > > > how to access the outlook user profiles through VB.net?
> > > > > > any help.....
> > > > > >
> > > > > > thanks in advance
> > > > > >
> > > > > > Srinivas
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
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
Programmatically count # of Outlook Profiles w/o accessing registr N11689 Microsoft Outlook Interoperability 1 5th May 2009 02:01 PM
Accessing multiple MS-Outlook profiles with C# .net Amarendra Microsoft Outlook Program Addins 3 13th Dec 2007 02:43 PM
Using CDO 1.21 Library - Accessing Emails through Outlook Profiles =?Utf-8?B?TG9vbnlzYW4=?= Microsoft Outlook Discussion 0 18th Mar 2006 08:39 PM
Problem accessing folder user profiles David Microsoft Windows 2000 Active Directory 9 16th Dec 2003 12:18 AM
accessing installed software with other user profiles Rubstein Windows XP Security 0 16th Sep 2003 01:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:06 PM.