![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |