Outlook 2007 spell check and .NET code

Posted on 2008-11-09
Last Modified: 2013-11-10
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.
Question by:timetracer
    1 Comment

    Accepted Solution

    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.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    Viewers will learn the different options available in the Backstage view in Excel 2013.
    The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now