![]() |
Outlook und spezieller Kontaktordner
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:
Danke, Frank
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; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz