如何抓取outlook連絡人的資料 |
尚未結案
|
edwardweng
一般會員 ![]() ![]() 發表:29 回覆:5 積分:6 註冊:2003-04-16 發送簡訊給我 |
|
hagar
版主 ![]() ![]() ![]() ![]() ![]() ![]() 發表:143 回覆:4056 積分:4445 註冊:2002-04-14 發送簡訊給我 |
看這篇行不行:
var OutlookApp, Mapi, Contacts: Variant; k: integer; EMailAddress: string; FullName: string; begin // Get the Outlook Application object OutlookApp := CreateOleObject('Outlook.Application'); // Get the MAPI NameSpace object. Mapi := OutlookApp.GetNameSpace('MAPI'); // set the folder Contacts := Mapi.Folders('Personal Folders').Folders('Contacts); // process the list for k := 1 to Contacts.Items.Count do begin // process the contact, fields are defined in "ContactItem Object" in the VBA file EMailAddress := Contacts.Items[k].Email1Address); FullName := Contacts.Items[k].FullName); //etc. //output as desired end; // Closeout OutlookApp := Unassigned; Mapi := Unassigned; Contacts := Unassigned;-- QBQ: 我能做什麼? |
FrankieChen
一般會員 ![]() ![]() 發表:1 回覆:1 積分:0 註冊:2004-01-04 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |