Ik heb een stukje code dat de NAW etc. velden van het object Contact uitleest
van een Outlook.Application. De tekst wordt in een stringgrid geplakt. So far, so good. Echter, in Outlook 2000 wordt een formulier gebruikt met daarop z.g. custom fields. De import die alle properties van object Contact ophaalt, slaat deze fields over.
Ik zoek dus een veld dat Contact.Mail_Recipient heet, maar nergens te vinden. Heb de hele GoT databak nagekeken, maar niet te vinden.
van een Outlook.Application. De tekst wordt in een stringgrid geplakt. So far, so good. Echter, in Outlook 2000 wordt een formulier gebruikt met daarop z.g. custom fields. De import die alle properties van object Contact ophaalt, slaat deze fields over.
Delphi:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| procedure TForm1.Button1Click(Sender: TObject); const olFolderContacts = $0000000A; var outlook, NameSpace, Contacts, Contact: OleVariant; i,j: Integer; begin outlook := CreateOleObject('Outlook.Application'); NameSpace := outlook.GetNameSpace('MAPI'); Contacts := NameSpace.GetDefaultFolder(olFolderContacts); StringGrid1.RowCount := Contacts.Items.Count; Edit1.Text := IntToStr(Contacts.Items.Count); ProgressBar1.Max := Contacts.Items.Count; Button1.Enabled := false; for i := 1 to Contacts.Items.Count do begin Contact := Contacts.Items.Item(i); StringGrid1.Cells[1,i] := Contact.FullName; StringGrid1.Cells[2,i] := Contact.BusinessAddress; Application.ProcessMessages; ProgressBar1.Position := i; end; Button1.Enabled := true; Outlook := UnAssigned; end; |
Ik zoek dus een veld dat Contact.Mail_Recipient heet, maar nergens te vinden. Heb de hele GoT databak nagekeken, maar niet te vinden.