2017-02-26 98 views

回答

0

謝謝。

它是由以下方法實現

public static Outlook.MAPIFolder memofolder; 

private void ThisAddIn_Startup(object sender, System.EventArgs e) 
     { 
      application = this.Application; 
      Outlook._NameSpace mapiNameSpace = application.GetNamespace("MAPI"); 
      memofolder = mapiNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderNotes); 

private void OnItemSend(object item, ref bool cancel){ 
      Outlook.NoteItem a = memofolder.Items.Add(Outlook.OlItemType.olNoteItem); 
      a.Body = "test"; 
      a.Save(); 

運行Outlook 2016

相關問題