HI, someone already try use an way to use spell check with ms word, maybe using activex?
i need make spell check in memo , in portuguese-br , someone try this?
thanks
HI, someone already try use an way to use spell check with ms word, maybe using activex?
i need make spell check in memo , in portuguese-br , someone try this?
thanks
I have not used it, but others here are using this spell checker with FWH.
http://www.wintertree-software.com/dev/ ... ml#Catalog
It is US$399 and you can get a Brazilian dictionary.
James
Friends:
Yes, I have a little function to use the ms-word spell checker, if it can help
I can post it.
Regards
Armando, please...
oPro:DES := SpellCheck(oPro:DES)STATIC FUNCTION SpellCheck(Texto)
LOCAL oWord,oDoc,oTexto
LOCAL cText:=Texto
oWord:=TOleAuto():New( "Word.Application" )
oWord:Visible := .F.
oWord:Documents:Add()
oDoc := oWord:Get("ActiveDocument")
oTexto := oWord:Selection()
oTexto:Text := Texto
oDoc:CheckSpelling()
cText := oTexto:Text
oDoc:Close(0)
oWord:Quit()
oTexto:=NIL
oDoc:=NIL
oWord:=NIL
IF ! EMPTY(cText) // If ctext is empty that means that the process was canceled
  Texto := cText
ENDIF
RETURN(Texto)HI Armando, very thanks, works very fine...
let me ask : if i want know if word is present in computer? maybe an function ![]()
Norberto:
Oppps, I don't know
, perhaps somebody can help us, or Test and error .
Sorry
norberto wrote:HI Armando, very thanks, works very fine...let me ask : if i want know if word is present in computer? maybe an function
TRY
oWORD := CREATEOBJECT( "word.Application" )
CATCH
TRY
oWORD := CREATEOBJECT( "word.Application" )
CATCH
// no word is installed
RETURN NIL
END
ENDisWord()
local lSuccess:=.F.
local oWord
TRY
oWord:= createObject("word.Application")
lSuccess:=.T.
CATCH
lSuccess:=.F.
END
return lSuccessHi, i use :
.....
TRY
oWord:=TOleAuto():New( "Word.Application" )
CATCH
Msginfo( "Word não instalado!!" )
Return(Texto)
END
....
and works fine.
why some people use toleauto and another createobject, is the same??
thanks
James
This code has been in my application since quite a while and running ok
From my notes, Ole prompted error many times at first try , this is why i embedded try catch to solve this and it solved it at that time.
Maybe now , only one try/catch is enough ,
My purpose was just to show the way testing ms word's presence
HTH
Richard
Richard,
I wasn't being critical--I figured you had a reason and it seems you did. Even if two aren't needed always it is probably better to use them if there is a possibility of a false error.
Thanks for the sample.
James
Hi,
Once the spell check is completed, I am getting a dialog with following messages:
"This file is in use by another application or user."
(C:\Documents and Settings..\Normaldot)
and also getting
Save as dialog box.
How to avoid this.
Regards,
SSCE_CheckCtrlBackgroundRecheckAll( ::oActive:hWnd, SSCE_OPTION, RGB( 254, 1, 1 ) ), ),; CASE nKey == 32
SSCE_CheckCtrlBackgroundNotify( ::oActive:hWnd, SSCE_OPTION, RGB(254, 1, 1) )