How to save a note in an outlook addin.

  • Thread starter Thread starter Anil Kumar Gupta
  • Start date Start date
A

Anil Kumar Gupta

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)objItem;
_objNoteItem.SaveAs(strFileName,Microsoft.Office.Interop.Outlook.OlStoreType.olStoreDefault);
Thanks
Anil Kumar Gupta
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top