display Outlook NoteItem at loading
Visual Basic
1
Posts
1
Posters
0
Views
1
Watching
-
I am developing outlook Com Addin. At loading mynotes.msg( notes ) to outlook, I also want to launch this note. NoteItem as member function called Display, however it doesn't do anything. The following is the exact code from my app for launching loaded note(msg file). Something wrong with my code or know workaround to launch this loaded note item? Dim objNameSpace As Outlook.NameSpace Dim objMAPIFolder As Outlook.MAPIFolder Dim objNoteItem As Outlook.NoteItem Dim str_Body As String Set objNameSpace = otlkDoc.GetNamespace("MAPI") Set objMAPIFolder = objNameSpace.GetDefaultFolder(olFolderNotes) Set objNoteItem = otlkDoc.CreateItemFromTemplate(str_FileName) objNoteItem.Save objNoteItem.Display Set objNoteItem = Nothing