Outlook Kontakte erzeugen
-
Hat denn niemand einen Tipp für mich,
wie ich per Automation einen neuen Kontakt in Outlook erzeugen kann ?
-
da müsstest du mit WinAPI arbeiten!
-
Hi,
mein erster Tip ist zum Auslesen der Kontakte
http://c-plusplus.net/forum/viewtopic.php?t=47925&highlight=outlookund mein zweiter Tip zum Schreiben:
outlook = CreateOleObject("Outlook.Application"); nameSpace = outlook.OleFunction("GetNameSpace", "MAPI"); // neuen Kontakt erzeugen OLContacts = outlook.OleFunction("CreateItem", 2); OLContacts.OlePropertySet("LastName", "fsdöf"); OLContacts.OlePropertySet("Title", "fsdöf"); OLContacts.OlePropertySet("CompanyName", "fsdöf"); OLContacts.OlePropertySet("BusinessAddressPostalCode", "fsdöf"); OLContacts.OlePropertySet("BusinessAddressCountry", "fsdöf"); OLContacts.OlePropertySet("BusinessAddressStreet", "fsdöf"); OLContacts.OleProcedure("Save");
Funktioniert wirklich gut!!!!
Marco