Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Spell checking using Word problem
Message
De
12/01/2009 16:54:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01372897
Message ID:
01372979
Vues:
20
>>I am using Word to do spell checking. I am using code from this MS kb http://support.microsoft.com/kb/271819
>>
>>It seems since Word 2003 the code stop being able to change the WindowState value.
>>
>>in the code we change the WindowState = 0 (normal) then we move Word out of the screen move(1000,1000)
>>The problem is that WindowState is not changing to 0 but it keep the value for Maximized (I believe 1)
>>
>>is there a better way to use Word Spell Checker? or a work around this problem.
>>
>>Thanks
>
>You can try hiding the word window:
>
>LOCAL lnWhnd && Get the window handle from the word application
>DECLARE INTEGER ShowWindow IN User32 INTEGER lnHwnd, INTEGER lnOption
>ShowWindow(lnWhnd,0)
>
I am setting the .visible value to false.

Here's an update.
If I set the top value to -4000 I do not have to use the move() function that causing the problem. The side effect of this setting is causing the screen to blink when the Spell Checking is done.

so, I will call it done if I can get rid of that blink

Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform