Solved

How to use outlook redemption

Posted on 2014-09-16
1
408 Views
Last Modified: 2014-09-23
Could someone show me how to use outlook redemption to accomplish the same thing as the code example?
    Private Sub bw_DoWork(sender As Object, e As DoWorkEventArgs) Handles bw.DoWork

        Dim outlookApp As Outlook.Application = New Outlook.Application
        'Dim oNS As Outlook.NameSpace = outlookApp.Session
        Dim oNS As Outlook.NameSpace = outlookApp.GetNamespace("mapi")
        Dim oContacts As Outlook.MAPIFolder = oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)
        Dim oItems As Outlook.Items = oContacts.Items
        Dim oContact As Outlook.ContactItem = Nothing

        Dim dt As New DataTable
        dt.TableName = "Companies"
        dt.Columns.Add("Company")

        For Each contactItem As Outlook.ContactItem In oContacts.Items
            'ProgressBar1.Maximum = oContacts.Items.Count
            If Not contactItem.CompanyName = Nothing Then
                dt.Rows.Add(contactItem.CompanyName)
            End If
        Next

        outlookApp.Quit()
        outlookApp = Nothing

    End Sub

Open in new window

0
Comment
Question by:Basicfarmer
1 Comment
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 40338742
Example on following page shows the use of Redemption with VB

http://www.outlookcode.com/threads.aspx?forumid=5&messageid=18312
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question