AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Outlook und spezieller Kontaktordner

Ein Thema von dataspider · begonnen am 13. Jul 2006
Antwort Antwort
Benutzerbild von dataspider
dataspider

Registriert seit: 9. Nov 2003
Ort: 04539 Groitzsch
1.350 Beiträge
 
Delphi 11 Alexandria
 
#1

Outlook und spezieller Kontaktordner

  Alt 13. Jul 2006, 16:13
Hallo,

ich möchte Adressen einer externen PST - Datei importieren.
Dafür habe ich diese in Outlook geöffnet und sie ist jetzt unter einem Ordner
(QKL_Kontakte\Kontakte\Export) erreichbar.
Wie komme ich nun an diese Kontakte ran. Ich erhalte momentan nur meine.

Delphi-Quellcode:
var
  aNameSpace : NameSpace;
  aContacts : MAPIFolder;
  aContactItem : ContactItem;
  iCnt : Integer;
begin
  OutApp.Connect;
  aNameSpace := OutApp.GetNamespace('MAPI');
  aContacts := aNameSpace.GetDefaultFolder(olFolderContacts);
  // OutApp.ActiveExplorer.CurrentFolder := 'QKL_Kontakte';
  // wie Ordner wechseln ???
  for iCnt := 1 to aContacts.Items.Count do
  begin
    aContactItem := aContacts.Items.Item(iCnt) as ContactItem;
    ListBox1.Items.Add(Format('%s : %s', [aContactItem.FirstName,
                       aContactItem.Email1Address]));
  end;
  OutApp.Disconnect;
end;
Danke, Frank
Frank Reim
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:16 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz