CheckSpelling on Word.Application selecting the language

R

Robert Johnson

I'm using automation from c# in order to use the word functionnalties.
I succeed in calling the Application.CheckSpelling methods, but the check is
always done with the english language.

I want to have the ability to dynamicaly select the language when i call the
checker. Sometime it can be english, sometime it can be french, depending of
the user profile in our software.

I tried to use Document.CheckSpelling instead of Application.CheckSpelling,
setting the language (Document.Content.LanguageID) , it's work, but in this
case the Speeling dialog box is displayed, and i don't want it. More, when i
close the Speeling dialog box, the word document is displayed too.
For this try , i had setted Application.DisplayAlerts to
WdAlertLevel.wdAlertsNone and Application.Visible to false, but it has no
effect.
 

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