A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to save a note in an outlook addin.



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 7th 06, 06:05 AM posted to microsoft.public.outlook.program_vba
Anil Kumar Gupta
external usenet poster
 
Posts: 1
Default How to save a note in an outlook addin.

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

  #2  
Old April 7th 06, 06: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



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPM.NOTE - Save to specific Folder Carlos Outlook - Using Forms 3 August 17th 06 04:21 PM
OCX problem in VB Outlook AddIn Rui Oliveira Add-ins for Outlook 0 March 31st 06 05:42 PM
Unable to get outlook com addin to install correctly [email protected] Add-ins for Outlook 2 March 15th 06 07:01 PM
Outlook Remains in TaskList after closing (with AddIn) Jeff Simcock Add-ins for Outlook 2 February 2nd 06 04:42 AM
Outlook addin help Melbin Outlook - Using Forms 0 January 24th 06 01:12 PM


All times are GMT +1. The time now is 12:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.