Hi.
I am writing an INTRAnet app using asp.net/VB that, amongst other things,
needs to access the global address list in Outlook, extract some email
addresses and send email to these people.
(actually, I believe I will have to be using Outlook's Web client).
I am spending vast amounts of time trawling unsuccessfully thru MSDN and
Help for something that would allow me to make some progress, but
unsuccessfuly.
Does anyone have the few lines of code necessary to open Outlook - I can pro
ceed with collections and methods from there .... I just cant get to a
starting points.
I can do all of this in VB6 but, being brand new to .net, hear rumours of
Com Interop and Assemblies and can find no directions.
Thanks.
Greg
[Alan Flores] - 28 Oct 2004 17:03 GMT
i think it would work only on windows applications with the outlook client
installed.. havent tried it on a webserver with asp.net,
> Hi.
>
[quoted text clipped - 17 lines]
> Thanks.
> Greg
[Alan Flores] - 28 Oct 2004 17:03 GMT
this can make you started :
'Create Outlook application.
Dim oApp As Outlook.Application = New Outlook.Application
'Get namespace, Tasks and Calendar folders references.
Dim oNS As Outlook.NameSpace = oApp.GetNamespace("MAPI")
Dim cTasks As Outlook.MAPIFolder =
oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks)
Dim cCalendar As Outlook.MAPIFolder =
oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
Dim oTt As Outlook.TaskItem
Dim oAt As Outlook.AppointmentItem
> Hi.
>
[quoted text clipped - 17 lines]
> Thanks.
> Greg
Jay B. Harlow [MVP - Outlook] - 28 Oct 2004 17:13 GMT
Greg,
The "global address list" suggests you really want to access information in
Exchange Server.
For a discussion on selecting development technologies for Exchange Server,
start here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_tech
sel_intro.asp
The following site provides a good place to start on articles about using
Outlook & .NET, it includes a handful of articles on CDO & .NET.
http://www.microeye.com/resources/res_outlookvsnet.htm
Hope this helps
Jay
> Hi.
>
[quoted text clipped - 18 lines]
> Thanks.
> Greg
Dino Chiesa [Microsoft] - 28 Oct 2004 22:41 GMT
and remember, there are issues with server-side automation of office apps.
http://support.microsoft.com/kb/257757
> Greg,
> The "global address list" suggests you really want to access information
[quoted text clipped - 37 lines]
>> Thanks.
>> Greg