Autor Beitrag
hansg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 168

Win XP Professional SP3, Vista Ultimate 32 SP1
Delphi 6 Professional
BeitragVerfasst: Mo 11.08.03 18:03 
Hallo zusammen,
gibt es eine Möglichkeit auf das Outlook Adressbuch zu zugreiffen?

_________________
Gruß Hans
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: Di 12.08.03 17:54 
ja, sofern du D6 und größer benutzt oder die Orpheus (Freeware) Kompos nutzt. in beiden Fällen sind (ActiveX) Komponenten bei, mit denen du die gesamte Officewelt "fernsteuern" kannst, auch Outlook.

grez
msch
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Do 16.09.04 21:01 
Hallo MSCH,

auch ich will aus dem Adressbuch Daten auslesen. Ich habe jetzt die Komponentensammlung Orpheus von SourceForge heruntergeladen, entdecke aber weder ein ActiveX-Control, noch eine Komponente mit der ich Outlook fernsteuern kann.
Wie heisst den die ActiveX Datei oder kennst du noch eine andere Lösung?

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Fr 17.09.04 07:12 
Orpheus ist auch nicht die richtige Komponentensammlung.

Guckt euch dann lieber die Office Partner Komponenten an
sourceforge.net/projects/tpofficepartner/

Gruß Martin
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 17.09.04 14:41 
Danke Martin,

jetzt komme ich zurecht (es sind Beispiele dabei).

Gruß Hape

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 17.09.04 22:46 
Hallo Martin, hallo DF,

ich habe mich wohl etwas zu früh gefreut. Das Auslesen beschränkt sich bei mir nur auf den Namen und die E-Mail-Adresse. Ich möchte allerdings an alle Daten herankommen.
Kannst du mir sagen, wie ich an diese komme?

Mein bisheriger Quelltext:
ausblenden volle Höhe Quelltext
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:
29:
30:
31:
32:
33:
34:
procedure TfrmImportOutlook.GetCategories;
var
  I: Integer;
begin
  cmbxCategories.Items.Clear;
  with OpOutlook.MapiNamespace.AddressLists do begin
    for I := 1 to Count do
      cmbxCategories.Items.Add(Item(I).Name);
  end;
  if cmbxCategories.Items.Count > 0 then begin
    cmbxCategories.ItemIndex := 0;
    GetAddresses(cmbxCategories.ItemIndex + 1);
  end;
end;

procedure TfrmImportOutlook.GetAddresses(const ACategory: Integer);
var
  oAddressList: AddressList;
  I: Integer;
  ListItem: TListItem;
begin
  lstvwAddresses.Items.BeginUpdate;
  lstvwAddresses.Items.Clear;
  oAddressList := OpOutlook.MapiNamespace.AddressLists.Item(ACategory);
  with oAddressList.AddressEntries do begin
    for I := 1 to Count do begin
      ListItem := lstvwAddresses.Items.Add;
      ListItem.Caption := Item(I).Name;
      ListItem.SubItems.Add(Item(I).Address);
//      Item(I).Details(Handle);       Details anzeigen
    end;
  end;
  lstvwAddresses.Items.EndUpdate;
end;
Gruß Hape

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
Martin77
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 282

XP Prof
D6 Prof, D7 Personal, D7 Enterprise, D8 personal
BeitragVerfasst: Sa 18.09.04 07:51 
Habe aufdem PC hier gerade keine OfficePartner drauf, werde im Laufe des Tages aber mal gucken ob ich dir weiterhelfen kann.


Martin
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 01.10.04 09:28 
Hallo,

ich habe jetzt doch endlich was gefunden:

www.swissdelphicente.../showcode.php?id=897.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.