outlook options

N

NigelGomm

using outlook automation is there anyway i can read and or set the "use
Microsoft Word 2003 to edit email messages" setting on the 'mail format' tab
?

tia

Nigel
 
N

NigelGomm

aha !

oMailItem.getInspector.isWordMail

but it's read only. No way to change it?

(I'm setting oMailItem.htmlBody to an HTML string but MS Word as editor
'corrupts' it.)

nigel
 
S

Steve Rindsberg

aha !

oMailItem.getInspector.isWordMail

but it's read only. No way to change it?

Wild guess. Try changing it manually, then look for changes in an Options or
similarly named section of the Outlook part of the registry
 
N

NigelGomm

good shout!

EditorPreference in
HKEY_CURRENT_USER/Software/Microsoft/Office/11.0/outlook/options

thanks

nigel
 
S

Steve Rindsberg

good shout!

EditorPreference in
HKEY_CURRENT_USER/Software/Microsoft/Office/11.0/outlook/options

Bingo. Imagine what I could do if I'd actually ever used Outlook! ;-)
 
N

NigelGomm

ah!

that's only good when outlook is not running. When i instatiate an object
with outlook running it seems to have this value already cached so my change
doesn't have any effect.

Is there another way or is there a way to cause outlook to refresh that
value from the registry?

tia

nigel
 
S

Steve Rindsberg

Is there another way or is there a way to cause outlook to refresh that
value from the registry?

Remember, I'm the one who can't spell Outlurk, much less use it. ;-)

But if it's like PowerPoint, it

- reads certain settings at startup
- maintains them internally during the session
- writes them back to the registry on exit

meaning that anything you write to the registry while it's running will get
overwritten when it quits, but that's ok because it would have been ignored up
until that point anyhow. That's a relief, eh?

Kluge of last resort in PPT is to send keystrokes at it to change the needed
setting in the UI. Or, depending on your situation, you might be able to fire
off an external EXE as one or another app shuts down; the exe waits a bit then
writes to the section of the registry you need to control.
 

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

Top