Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word spellchecker-suppress save message
Message
From
26/04/2004 06:26:16
 
 
To
26/04/2004 06:03:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00898080
Message ID:
00898090
Views:
20
Hi Cetin,

As usual, you hit the nail on the head! Thanks alot

Peter




>>I use the following code to spell check the content of an editbox:
>>
>>...
>>WITH oWordDoc
>>	.Content.TEXT = ALLTRIM(edtTextToCheck)
>>	.ACTIVATE
>>	IF .SpellingErrors.COUNT > 0
>>		.CHECKSPELLING
>>	ELSE
>>		=MESSAGEBOX("Spell check complete. No errors found",0,"Spell Checker")
>>	ENDIF
>>	oWord.VISIBLE = .F.
>>	edtTextToCheck= .Content.TEXT
>>ENDWITH
>>...
>>
>>but word asks if I want to save the document. Can I hide that messagebox????
>>
>>Thanks in advane
>>
>>Peter
>
>Peter,
>I haven't tried but this should work :
>
>oWord.DisplayAlerts = .f.
>* Before where it asks to save
>oWord.ActiveDocument.Saved = .t.
>Cetin
Peter Cortiel
Previous
Reply
Map
View

Click here to load this message in the networking platform