mar. 28 août 2012, 09h28

JpG
France
atoutfox.public.association
CORRECTEUR ORTHOGRAPHIQUE
Bonjour,
J'ai inséré de quoi lancer le correcteur orthographique de word sur un champ mémo.
Le code est celui-ci :
oWord=CREATEOBJECT("Word.Application")
oWord.WindowState=2
_CLIPTEXT=ThisForm.TXTMEMO.VALUE && mytable.memofield
oWord.Documents.Add.Content.Paste
oWord.Visible=.F.
oWord.ActiveDocument.CheckSpelling()
oWord.SELECTION.WholeStory
IF oWord.selection.text <> _CLIPTEXT
=oWord.ActiveDocument.Select
cText=oWord.Selection.Text
cText=LEFT(cText,LEN(cText)-1)
ThisForm.TXTMEMO.VALUE=cText
ENDIF
_CLIPTEXT=""
oWord.Documents.Close(0)
oWord.Quit(0)
MA QUESTION :
Comment faire pour que la fenêtre du correcteur arrive au 1ER PLAN ?
Avec le code ci-dessus, elle est toujours derrière la fenêtre de l'application.
D'avance MERCI
Jp GRANGER
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000009651