Solved

How to use outlook redemption

Posted on 2014-09-16
1
301 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now