Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook 2007 spell check and .NET code

Geek News

Outlook 2007 spell check and .NET code
rob_tt08 11/10/2008 3:42:00 AM
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.

Re: Outlook 2007 spell check and .NET code
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 11/10/2008 3:37:08 PM
I don't know of any way to do that.

--
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


"rob_tt08" <robtt08[ at ]discussions.microsoft.com> wrote in message
news:CC7C2071-A04C-4080-A1AA-A87D524D9BA5[ at ]microsoft.com...
[Quoted Text]
> 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.
>

Re: Outlook 2007 spell check and .NET code
rob_tt08 11/14/2008 5:16:00 AM
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.

"Ken Slovak - [MVP - Outlook]" wrote:

[Quoted Text]
> I don't know of any way to do that.
>
> --
> 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
>
>
> "rob_tt08" <robtt08[ at ]discussions.microsoft.com> wrote in message
> news:CC7C2071-A04C-4080-A1AA-A87D524D9BA5[ at ]microsoft.com...
> > 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.
> >
>
>
Re: Outlook 2007 spell check and .NET code
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 11/14/2008 2:10:04 PM
Is the Word CheckSpelling method a blocking synchronous method? I thought it
was asynchronous.

--
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


"rob_tt08" <robtt08[ at ]discussions.microsoft.com> wrote in message
news:9070FB59-20DE-4081-B2D4-19F05FAD57DE[ at ]microsoft.com...
[Quoted Text]
>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.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net