Spell Checker issue going over original message

E

Esteban

Hi,

I’m developing an add-in for Outlook 2003/2007 with Visual Studio 2008, .Net
Framework 2.0 (C#) and I’m having an issue with the default spell checking
functionality provided by Outlook 2003 (Word editor) and 2007.

I created a very simple test project that finds the selected item in the
Explorer window and then I call the Reply() method and launch the newly
created MailItem in its own Inspector. This will include the original content
at the bottom of the new composing window (default option in Outlook):

-- pseudo code --
selectedItem = Explorer. Selection[1];
newItem = selectedItem.Reply();
newItem.Display(false);

My issue is that when the user finishes composing the response and invokes
the Spell Check (F7) command the whole message is scanned, including the text
of the original message, despite the fact that the “Ignore original message
text in reply or forward†option is enabled (default).

If I use the standard Reply button in Outlook Explorer or one of the
equivalent shortcuts (or in the Inspector window), the Spell Checker honors
this setting and checks only the new content in the composing message.

How can I reproduced this behavior programmatically? I imagined that maybe
Outlook (or Word?) is injecting some sort of marker in the content of the
message (HTMLBody?) to then know when to stop checking, so I tried using
OutlookSpy to see check the HTMLBody property of the new message but I can’t
detect any differences there. Is there any other setting I’m missing in
either the original message (“selectedItemâ€) or the new one created via Reply
method (“newItemâ€) to produce this result?

Thanks in advance for any comments or hints.

Esteban

PS: I’m also using AddinExpress components, but I understand this is not
related to that library as this behavior can be reproduced with simple VB
scripting.
 

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