Connecting Tech Pros Worldwide Forums | Help | Site Map

accessing outlook user profiles from VB.net

Srinivas
Guest
 
Posts: n/a
#1: Nov 20 '05
hi all
how to access the outlook user profiles through VB.net
any help....

thanks in advanc

Srinivas

Jay B. Harlow [MVP - Outlook]
Guest
 
Posts: n/a
#2: Nov 20 '05

re: accessing outlook user profiles from VB.net


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" <anonymous@discussions.microsoft.com> wrote in message
news:CDED26BE-8A65-444C-8204-1CC6E7E81AE2@microsoft.com...[color=blue]
> hi all,
> how to access the outlook user profiles through VB.net?
> any help.....
>
> thanks in advance
>
> Srinivas[/color]


Srinivas
Guest
 
Posts: n/a
#3: Nov 20 '05

re: accessing outlook user profiles from VB.net


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

Jay B. Harlow [MVP - Outlook]
Guest
 
Posts: n/a
#4: Nov 20 '05

re: accessing outlook user profiles from VB.net


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" <anonymous@discussions.microsoft.com> wrote in message
news:E9D2A2B6-62E7-4005-B61F-739051628BB1@microsoft.com...[color=blue]
> hi jay,
> thanks a lot for the reply....
> sorry... i could't reply for the previous post,that helped me in solving[/color]
the outlook session problem.[color=blue]
>
> 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[/color]
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.[color=blue]
> If the value matches with one of the existing outlook profiles...he will[/color]
be logged with that profile....[color=blue]
> 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
>[/color]


Srinivas
Guest
 
Posts: n/a
#5: Nov 20 '05

re: accessing outlook user profiles from VB.net


Thanks jay,
Right now it's not exchange server....but in future there's a chance for switching over to it


Regards
Srinivas
Duron
Guest
 
Posts: n/a
#6: Nov 20 '05

re: accessing outlook user profiles from VB.net


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]" <Jay_Harlow_MVP@msn.com> 秎ン
news:%236eipUfAEHA.740@TK2MSFTNGP12.phx.gbl い级糶...[color=blue]
> Srinivas,
> Is this related to the question you asked last week (titled "Urgent:[/color]
Outlook[color=blue]
> 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" <anonymous@discussions.microsoft.com> wrote in message
> news:CDED26BE-8A65-444C-8204-1CC6E7E81AE2@microsoft.com...[color=green]
> > hi all,
> > how to access the outlook user profiles through VB.net?
> > any help.....
> >
> > thanks in advance
> >
> > Srinivas[/color]
>
>[/color]


Jay B. Harlow [MVP - Outlook]
Guest
 
Posts: n/a
#7: Nov 20 '05

re: accessing outlook user profiles from VB.net


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" <johnnyle@ms3.hinet.net> wrote in message
news:uUrfGU1AEHA.2768@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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[/color]
list![color=blue]
> I am using Outlook 2003.
>
> Any solution? Thanks in advance.
>
> "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> 秎ン
> news:%236eipUfAEHA.740@TK2MSFTNGP12.phx.gbl い级糶...[color=green]
> > Srinivas,
> > Is this related to the question you asked last week (titled "Urgent:[/color]
> Outlook[color=green]
> > 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[/color][/color]
using[color=blue][color=green]
> > 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" <anonymous@discussions.microsoft.com> wrote in message
> > news:CDED26BE-8A65-444C-8204-1CC6E7E81AE2@microsoft.com...[color=darkred]
> > > hi all,
> > > how to access the outlook user profiles through VB.net?
> > > any help.....
> > >
> > > thanks in advance
> > >
> > > Srinivas[/color]
> >
> >[/color]
>
>[/color]


Duron
Guest
 
Posts: n/a
#8: Nov 20 '05

re: accessing outlook user profiles from VB.net


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]" <Jay_Harlow_MVP@msn.com> 秎ン
news:ejy6nu5AEHA.3416@TK2MSFTNGP10.phx.gbl い级糶...[color=blue]
> 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[/color]
COM[color=blue]
> 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" <johnnyle@ms3.hinet.net> wrote in message
> news:uUrfGU1AEHA.2768@TK2MSFTNGP09.phx.gbl...[color=green]
> > 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[/color]
> list![color=green]
> > I am using Outlook 2003.
> >
> > Any solution? Thanks in advance.
> >
> > "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> 秎ン
> > news:%236eipUfAEHA.740@TK2MSFTNGP12.phx.gbl い级糶...[color=darkred]
> > > Srinivas,
> > > Is this related to the question you asked last week (titled "Urgent:[/color]
> > Outlook[color=darkred]
> > > 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[/color][/color][/color]
relatively[color=blue][color=green][color=darkred]
> > > 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[/color][/color]
> using[color=green][color=darkred]
> > > 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" <anonymous@discussions.microsoft.com> wrote in message
> > > news:CDED26BE-8A65-444C-8204-1CC6E7E81AE2@microsoft.com...
> > > > hi all,
> > > > how to access the outlook user profiles through VB.net?
> > > > any help.....
> > > >
> > > > thanks in advance
> > > >
> > > > Srinivas
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Duron
Guest
 
Posts: n/a
#9: Nov 20 '05

re: accessing outlook user profiles from VB.net


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" <johnnyle@ms3.hinet.net> 秎ン
news:e7rpHe%23AEHA.628@TK2MSFTNGP10.phx.gbl い级糶...[color=blue]
> 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[/color]
to[color=blue]
> 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[/color]
told[color=blue]
> me this file is not recognized as a COM server. I don't know what more can[/color]
I[color=blue]
> do from here.
>
> Duron
>
> "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> 秎ン
> news:ejy6nu5AEHA.3416@TK2MSFTNGP10.phx.gbl い级糶...[color=green]
> > Duron,
> > If you want "Microsoft Outlook 10.0 Object Library" specifically, you[/color][/color]
will[color=blue][color=green]
> > 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[/color][/color]
appropriate[color=blue][color=green]
> > PIA (either the optional Outlook 2003 setup or the download from[/color][/color]
Micorosft[color=blue][color=green]
> > for Outlook XP). Once the PIA is installed simply referencing the above[/color]
> COM[color=green]
> > 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" <johnnyle@ms3.hinet.net> wrote in message
> > news:uUrfGU1AEHA.2768@TK2MSFTNGP09.phx.gbl...[color=darkred]
> > > 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[/color]
> > list![color=darkred]
> > > I am using Outlook 2003.
> > >
> > > Any solution? Thanks in advance.
> > >
> > > "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> 秎ン
> > > news:%236eipUfAEHA.740@TK2MSFTNGP12.phx.gbl い级糶...
> > > > 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[/color][/color][/color]
offhand[color=blue][color=green][color=darkred]
> > > > 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[/color][/color]
> relatively[color=green][color=darkred]
> > > > limited amount of Exchange mailboxes, he may want to consider[/color][/color][/color]
delegate[color=blue][color=green][color=darkred]
> > > > access instead (and then GetSharedDefaultFolder).
> > > > </quote>
> > > >
> > > > Either way: The following site provides a plethora of information on[/color]
> > using[color=darkred]
> > > > 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" <anonymous@discussions.microsoft.com> wrote in message
> > > > news:CDED26BE-8A65-444C-8204-1CC6E7E81AE2@microsoft.com...
> > > > > hi all,
> > > > > how to access the outlook user profiles through VB.net?
> > > > > any help.....
> > > > >
> > > > > thanks in advance
> > > > >
> > > > > Srinivas
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Jay B. Harlow [MVP - Outlook]
Guest
 
Posts: n/a
#10: Nov 20 '05

re: accessing outlook user profiles from VB.net


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.
[color=blue][color=green]
> > 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[/color][/color]
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" <johnnyle@ms3.hinet.net> wrote in message
news:eaWzCl%23AEHA.1028@TK2MSFTNGP11.phx.gbl...[color=blue]
> 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[/color]
to[color=blue]
> Add Reference under the Project menu. I just failed to find and add this
> item to my Toolbar to use this control.
>
> "Duron" <johnnyle@ms3.hinet.net> 秎ン
> news:e7rpHe%23AEHA.628@TK2MSFTNGP10.phx.gbl い级糶...[color=green]
> > Thanks Jay.
> >
> > Actually I already had PIA installed (downloaded from Microsoft)[/color][/color]
according[color=blue][color=green]
> > to some MSDN document. Unfortunately no luck.
> >
> > Followed the instructions I have created shared Office Add-ins and had[/color][/color]
it[color=blue][color=green]
> > run successfully everytime. The only problem is still that I just failed[/color]
> to[color=green]
> > find "Microsoft Outlook 10.0 Object Library" or something like that in[/color][/color]
my[color=blue][color=green]
> > 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[/color]
> told[color=green]
> > me this file is not recognized as a COM server. I don't know what more[/color][/color]
can[color=blue]
> I[color=green]
> > do from here.
> >
> > Duron
> >
> > "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> 秎ン
> > news:ejy6nu5AEHA.3416@TK2MSFTNGP10.phx.gbl い级糶...[color=darkred]
> > > Duron,
> > > If you want "Microsoft Outlook 10.0 Object Library" specifically, you[/color][/color]
> will[color=green][color=darkred]
> > > need to install Outlook XP.
> > >
> > > If you want to use Outlook 2003, you will need to use "Microsoft[/color][/color][/color]
Outlook[color=blue][color=green][color=darkred]
> > > 11.0 Object Library".
> > >
> > > With either library I would strongly recommend installing the[/color][/color]
> appropriate[color=green][color=darkred]
> > > PIA (either the optional Outlook 2003 setup or the download from[/color][/color]
> Micorosft[color=green][color=darkred]
> > > for Outlook XP). Once the PIA is installed simply referencing the[/color][/color][/color]
above[color=blue][color=green]
> > COM[color=darkred]
> > > Object Library will cause VS.NET to use the PIA.
> > >
> > > For details on the PIA & other matters concerning Outlook with .NET[/color][/color][/color]
see:[color=blue][color=green][color=darkred]
> > > http://www.microeye.com/resources/res_outlookvsnet.htm
> > >
> > > Hope this helps
> > > Jay
> > >
> > > "Duron" <johnnyle@ms3.hinet.net> wrote in message
> > > news:uUrfGU1AEHA.2768@TK2MSFTNGP09.phx.gbl...
> > > > 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[/color][/color][/color]
COM[color=blue][color=green][color=darkred]
> > > list!
> > > > I am using Outlook 2003.
> > > >
> > > > Any solution? Thanks in advance.
> > > >
> > > > "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP@msn.com> 秎ン
> > > > news:%236eipUfAEHA.740@TK2MSFTNGP12.phx.gbl い级糶...
> > > > > Srinivas,
> > > > > Is this related to the question you asked last week (titled[/color][/color][/color]
"Urgent:[color=blue][color=green][color=darkred]
> > > > 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[/color][/color][/color]
model.[color=blue][color=green][color=darkred]
> > > > > Imagine if they have something like ActiveSync installed... My[/color][/color]
> offhand[color=green][color=darkred]
> > > > > 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[/color]
> > relatively[color=darkred]
> > > > > limited amount of Exchange mailboxes, he may want to consider[/color][/color]
> delegate[color=green][color=darkred]
> > > > > access instead (and then GetSharedDefaultFolder).
> > > > > </quote>
> > > > >
> > > > > Either way: The following site provides a plethora of information[/color][/color][/color]
on[color=blue][color=green][color=darkred]
> > > 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" <anonymous@discussions.microsoft.com> wrote in message
> > > > > news:CDED26BE-8A65-444C-8204-1CC6E7E81AE2@microsoft.com...
> > > > > > hi all,
> > > > > > how to access the outlook user profiles through VB.net?
> > > > > > any help.....
> > > > > >
> > > > > > thanks in advance
> > > > > >
> > > > > > Srinivas
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]


Closed Thread


Similar Visual Basic .NET bytes