Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automating multi-lingual spellchecking using Word
Message
 
À
13/07/2005 14:59:18
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01032336
Message ID:
01032351
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
1. Yes, my mistake
oWordApp.CheckLanguage = .t.
2.
FOR EACH oDictionary IN oWordApp.Dictionaries
    ? oDictionary.Name, oDictionary.LanguageId
ENDFOR
>Borislav,
>
>That's great! Thank you very much! :)
>
>To summarize your code: My spellcheck code should paste the text to be spellchecked into Word, select this text, set this selected text's language property to a specific language id. By setting the text's language property, I don't have to change the default dictionary - Word will recognize the change in language and perform its spellcheck relative to the text's language property. Wow - that's a mouthful!
>
>Two quick questions:
>
>1. Should the oWordApp.CheckLanguage value be .T. vs. True in your code below?
>
>2. Any ideas on how I can verify that a given language's (locale's?) dictionary is present before?
>
>Regards,
>Malcolm
>
>>
>>#define wdFrenchCanadian 3084
>>#define wdFrance         33
>>
>>oWordDoc.Selection.LanguageID = wdFrenchCanadian
>>oWordDoc.Selection.NoProofing = .f.
>>oWordApp.CheckLanguage = True
>>...
>>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform