조회 수 6384 댓글 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
번호 분류 제목 날짜 조회 수 추천 수
86 Android Fake Incoming Call Android 2015.07.23 6769 0
85 일반 DivX 기술 간단 개요 2014.07.08 6706 0
84 Pi 안면인식, 동작인식을위한 OpenCV 설치 및 샘플 2017.10.18 6682 0
83 Pi 라즈베리파이 음성인식 S/W 2018.04.26 6554 0
82 Pi LCD interface 종류 및 Driver IC 2017.04.17 6446 0
81 Pi 라즈베리파이 gpio utility 2017.02.15 6414 0
» C# How to: Programmatically Add an Entry to Outlook Contacts 2015.05.27 6384 0
79 Python matplot에서 한글이 보이도록 하는 코드 2019.03.06 6338 0
78 Android Git 특정 commit 상태로 되돌리고 SHA1 값 알아내기 2015.05.13 6330 0
77 업무 ABS / PLA 2017.01.18 6320 0
76 Pi 라즈베리파이 커널 컴파일 2017.10.18 6219 0
75 Pi 부품 구매 2016.11.15 6182 0
74 일반 Common LDAP Queries 2015.05.13 6174 0
73 Python 디렉토리 없으면 만들기 2019.03.30 6097 0
72 Android 맨날 까먹는 버튼 클릭 이벤트 핸들러 코드 2014.12.17 6002 0
목록
Board Pagination ‹ Prev 1 ... 24 25 26 27 28 29 30 31 32 33 34 Next ›
/ 34

나눔글꼴 설치 안내


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

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

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5