500 points await the expert who can find a solution to this problem. Judging by the posts on various forums, this is quite a common issue, but no solutions seem to work for me.
I am developing in VS2008 with Word 2003 in Vista but the app will be deployed onto Windows XP.
I have a form containing a textbox. The user clicks on a button to spell check the text contained in the textbox.
The text is passed to an instance of Word where the spellchecking takes place. No problems here.
If the instance of Word visibility is set to False, then the app will hang. I guess this is because Word needs to be visible to access the Spellcheck dialog.
If I set the instance of Word visibility to True, in debug mode, the spellcheck dialog will appear on top of the form containing the textbox. In run mode (deployed application) the Word instance sits in the programme tray at the bottom of the window. This would require the user to click on the document to activate the spellcheck. Clearly this would be an unnacceptable requirement for the user.
So, here is my question: How can I force Word to focus the spell check dialog when the user click on the spellcheck button, preferrably with the Word instance visibilty set to False?
I have tried many of the posted solutions on various forums, but nothing seems to work.