Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / October 2004

Tip: Looking for answers? Try searching our database.

instantiate OUTLOOK from ASP.net/VB

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 28 Oct 2004 09:59 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.