473,729 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
+ 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.Applica tion = New outlook.Applica tion
Dim oNS As outlook.NameSpa ce = oApp.GetNamespa ce("MAPI")
oNS.Logon("Outl ook", Missing.Value, False, True)
Dim oDistItem As outlook.DistLis tItem =
oApp.CreateItem (outlook.OlItem Type.olDistribu tionListItem)
Any help would be greatly appreciated.

Many thanks,

Jason.
Nov 21 '05 #1
0 1741

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

Similar topics

1
2661
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 together in a Group or Distribution List rather than dumping them into the user's main address book. Any ideas? Francesco
2
2541
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 TIA Phil
1
2118
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
1953
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 contact information including their e-mails and eventually send them e-mails. Now the output could be a group of 50 people that matched the criterion, and my client wants to be able to e-mail to all of them, preferably with a single click, just like...
1
1957
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. The Outlook contacts. The distribution list can only contain around 130 people maximum. The requestor does not want to manage many small separate lists. I have got the error regardless of using outlook 2003 or 2000 when trying to add more than...
7
3623
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 get to item 250 i get a "system.invalid cast exception" and "specified cast is not valid". Once i get this error and try to go to the next record.. every record after gets the same error... It's like the com connection to outlook has been lost....
0
1081
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 distributionlist items to be included. how can i distinguish between normal contact and distribution list. i m working on outlook2003, visual studio .net 2003.
5
4549
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 adresses like istea@yahoo.com.au. Does anybody has an idea? Many thanks in advance.
0
2151
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 ?.Please help me to do this
0
8917
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8761
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9281
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8148
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6022
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2163
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.