473,473 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Creating an Outlook Distribution List in VB.Net

Hi all,

does anyone have any suggestions as to the steps
involved in creating a DL using VB.Net.

I have some Outlook automation experience
but I'm not sure what the objects are that I should
be creating. There is a distribution list item object,
but no dsitribution list object to contain the items!
Here's what I have so far:
Dim oApp As outlook.Application = New outlook.Application
Dim oNS As outlook.NameSpace = oApp.GetNamespace("MAPI")
oNS.Logon("Outlook", Missing.Value, False, True)
Dim oDistItem As outlook.DistListItem =
oApp.CreateItem(outlook.OlItemType.olDistributionL istItem)
Any help would be greatly appreciated.

Many thanks,

Jason.
Nov 21 '05 #1
0 1714

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Francesco | last post by:
I need to export a list of name and email address fields from a SQL table, in some format so that a user can take the file I generate and Import it into Outlook and it will keep all the names...
2
by: Phil Stanton | last post by:
Can anyone give me sone code to add addresses from a query to an Outlook Address book. The problem is that I want to add the new email addresses to a distribution list, not to the main email list ...
1
by: Dave | last post by:
Using Outlook2k on Win2k/XP, is there a way to produce the addresses that make up an Outlook Distribution List?
2
by: Ronnie | last post by:
I am faced with quite a conundrum. I have been assigned to develop a contact database, that can be queried using many different criterion. Now the hardest part is, my clients want to view the...
1
by: jmacione | last post by:
Problem Statement: Mary wants to share a distribution list of approximately 1000-2000 people with 3 other people. Sorfar I found three forms of address books that we can use for this. 1. ...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
0
by: Ratnesh Raval | last post by:
hi all, i am writing a application that accesses outlook using Microsoft.Office.Interop.Outlook.Application i need to extract all contacts from contact folder. but i dont want the...
5
by: isetea | last post by:
Hi, I have a module, which contains a SendEmail Function. In the MailSendItem I want to enter an Outlook Distribution List as the ".To". But it's not going to work. I can only enter complete email...
0
by: gowthamkg | last post by:
hi, I want read contacts in Particular Distribution List in outlook 2007 using C#(visual studio 2008)...i'm able to create to new distribution list and add members..How to retrieve them...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.