View Single Post
  #2  
Old April 7th 06, 05:39 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default How to save a note in an outlook addin.

The last parameter must be one of the OlSaveAsType enums, not OlStoreType.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Anil Kumar Gupta" wrote in message
oups.com...
Hi,
I am creating an outlook addin and want to save a note as rtf or htm
file. IS there any way to do this. I am using this but the last line is
throwing exception.
_objNoteItem = (Microsoft.Office.Interop.Outlook.NoteItemClass)ob jItem;
_objNoteItem.SaveAs(strFileName,Microsoft.Office.I nterop.Outlook.OlStoreType.olStoreDefault);
Thanks
Anil Kumar Gupta



Ads