댓글 쓰기 권한이 없습니다. 로그인 하시겠습니까?
C#
2015.05.27 09:10
How to: Programmatically Add an Entry to Outlook Contacts
조회 수 8780 댓글 0
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의 코드 스크랩내가 모으고 내가 보는
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Designed by sketchbooks.co.kr / sketchbook5 board skin
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5
Sketchbook5, 스케치북5