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

Change the Default Message Format for Outlook Application via Inte



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 1st 08, 10:50 PM posted to microsoft.public.outlook.program_vba
cursors
external usenet poster
 
Posts: 1
Default Change the Default Message Format for Outlook Application via Inte

Does anyone have an example in C# (preferred) or VB.NET of setting the
default message format programmaticly using Microsoft.Office.Interop.Outlook?
This is the same setting that is accessed using these steps:

Outlook:Tools:Options:Mail Format:Compose in this meassage format:
HTML|Rich Text|Plain Text

I'd like to change this setting in the user's Outlook 2007from a custom
Windows.Forms application that I am building.

Thanks,
Brad Pipins
Oklahoma City, OK
  #2  
Old October 2nd 08, 02:41 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Change the Default Message Format for Outlook Application via Inte

That value is set in the registry at
HKCU\Software\Microsoft\Office\xx.0\Outlook\Option s\Mail\EditorPreference as
a DWORD. The exact path depends on the version of Outlook. for 2002 it would
be 10.0, for 2003 it would be 11.0 and for 2007 it would be 12.0.

The value you set there would depend on whether or not WordMail is being
used and also if it's Outlook 2007. Since you don't mention your desired
format you'd have to examine that key and see what the value is for each
setting, with and without WordMail. As an example, if you want HTML format
you would always set the value to 0x00020000 for Outlook 2007. If it's
Outlook 2003 and the current value ends in 0x1 then WordMail is being used
and you'd return 0x00020001, otherwise you'd return 0x00020000.

Then of course there are other settings related to whether or not stationery
or themes are being used in the email settings, those are located under
HKCU\Software\Microsoft\Office\xx.0\Common\MailSet tings.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"cursors" wrote in message
...
Does anyone have an example in C# (preferred) or VB.NET of setting the
default message format programmaticly using
Microsoft.Office.Interop.Outlook?
This is the same setting that is accessed using these steps:

Outlook:Tools:Options:Mail Format:Compose in this meassage format:
HTML|Rich Text|Plain Text

I'd like to change this setting in the user's Outlook 2007from a custom
Windows.Forms application that I am building.

Thanks,
Brad Pipins
Oklahoma City, OK


 




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
In Outlook 2007, How to change default email format from HTML to t kmcorrell Outlook - Installation 1 September 27th 08 05:32 AM
Change Outlook 2007 message format after installation with OCT jabdip Outlook - Installation 0 August 7th 07 08:44 PM
How do you change the default phone number format in OL contacts? RedneckCPA Outlook - Using Contacts 4 July 28th 06 12:14 AM
Default message format Jim Outlook - Installation 0 May 11th 06 03:15 PM
how i can change default file format Outlook uses to save message Rajkumar Outlook - General Queries 4 April 25th 06 08:26 PM


All times are GMT +1. The time now is 07:04 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.