조회 수 6268 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

https://msdn.microsoft.com/ko-kr/library/dd264733.aspx


아웃룩 주소록에 저장하는 방법


private void AddContact()
{
    Outlook.ContactItem newContact = (Outlook.ContactItem)
        this.Application.CreateItem(Outlook.OlItemType.olContactItem);
    try
    {
        newContact.FirstName = "Jo";
        newContact.LastName = "Berry";
        newContact.Email1Address = "somebody@example.com";
        newContact.CustomerID = "123456";
        newContact.PrimaryTelephoneNumber = "(425)555-0111";
        newContact.MailingAddressStreet = "123 Main St.";
        newContact.MailingAddressCity = "Redmond";
        newContact.MailingAddressState = "WA";
        newContact.Save();
        newContact.Display(true);
    }
    catch
    {
        MessageBox.Show("The new contact was not saved.");
    }
}


[How to: Create a Contact Item]


https://msdn.microsoft.com/en-us/library/office/ff184633.aspx


using Outlook = Microsoft.Office.Interop.Outlook;

private void CreateContactExample()
{
    Outlook.ContactItem contact = Application.CreateItem(
        Outlook.OlItemType.olContactItem) as Outlook.ContactItem;
    contact.FirstName = "Mellissa";
    contact.LastName = "MacBeth";
    contact.JobTitle = "Account Representative";
    contact.CompanyName = "Contoso Ltd.";
    contact.OfficeLocation = "36/2529";
    contact.BusinessTelephoneNumber = "4255551212 x432";
    contact.WebPage = "http://www.contoso.com";
    contact.BusinessAddressStreet = "1 Microsoft Way";
    contact.BusinessAddressCity = "Redmond";
    contact.BusinessAddressState = "WA";
    contact.BusinessAddressPostalCode = "98052";
    contact.BusinessAddressCountry =
        "United States of America";
    contact.Email1Address = "melissa@contoso.com";
    contact.Email1AddressType = "SMTP";
    contact.Email1DisplayName =
        "Melissa MacBeth (mellissa@contoso.com)";
    contact.Display(false);
    contact.ShowCheckPhoneDialog(
        Outlook.OlContactPhoneNumber.
        olContactPhoneBusiness);
}


Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
431 업무 ABS / PLA 2017.01.18 6040 0
430 일반 Common LDAP Queries 2015.05.13 6053 0
429 Python matplot에서 한글이 보이도록 하는 코드 2019.03.06 6104 0
428 Android Git 특정 commit 상태로 되돌리고 SHA1 값 알아내기 2015.05.13 6181 0
427 Pi 라즈베리파이 gpio utility 2017.02.15 6261 0
» C# How to: Programmatically Add an Entry to Outlook Contacts 2015.05.27 6268 0
425 Pi LCD interface 종류 및 Driver IC 2017.04.17 6287 0
424 Pi 라즈베리파이 음성인식 S/W 2018.04.26 6379 0
423 Pi 안면인식, 동작인식을위한 OpenCV 설치 및 샘플 2017.10.18 6528 0
422 MFC [Collection] ArrayList 예제 2017.01.25 6592 0
421 일반 BT와 BLE 2017.05.16 6614 0
420 Android Fake Incoming Call Android 2015.07.23 6640 0
419 일반 DivX 기술 간단 개요 2014.07.08 6671 0
418 LINUX 우분투(Ubuntu) 설치된 패키지 목록 확인하기 2016.03.17 6684 0
417 C# Best way to implement keyboard shortcuts in a Windows Forms application 2015.11.06 6687 0
목록
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5