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