Outlook 2007 spell check and .NET code

R

rob_tt08

Our company has been working on an Outlook AddIn using VSTO which has a
number of issues which we have not been able to resolve yet.

We would appreciate any insight or assistance you can offer.

Our AddIn uses CommandBarButton.Execute() to trigger a spell check before
continuing to run its own code which eventually pops up a .NET form. In the
Outlook 2003 version, this works fine. In the Outlook 2007 version of the
AddIn, the code does not wait for the spellcheck to be completed before
continuing to run, which results in our .NET form appearing over the top of
the spellcheck window instead of appearing after it closes. How can we get
the form to only popup once the spell check has been finished/closed?

Thank you for your advice.
 
R

rob_tt08

I was able to work around this issue by using the CheckSpelling method on the
WordEditor object instead of using CommandBarButton.Execute in the Outlook
2007 version of the AddIn.
 
K

Ken Slovak - [MVP - Outlook]

Is the Word CheckSpelling method a blocking synchronous method? I thought it
was asynchronous.
 

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