Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Spell checking using Word problem
Message
From
12/01/2009 16:54:34
 
 
To
12/01/2009 15:53:59
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01372897
Message ID:
01372979
Views:
18
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform