Spell Checker

Spell Checker

Postby TimStone » Thu Mar 24, 2016 2:13 pm

For many years I have included the Wintertree spell checker in 32 bit applications. Now that I want to start working with 64 bit, I need the proper library. To upgrade that spell checker is $700 US and it simply is not in our budget.

Is anyone using a different spell checker in their FWH applications ? I'm looking for something more reasonably priced that has both a 32 bit and 64 bit library.

Thanks in advance for your input.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Spell Checker

Postby Armando » Thu Mar 24, 2016 4:31 pm

Tim:

I use the spell checker included in MS-WORD.

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3209
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Spell Checker

Postby Otto » Fri Mar 25, 2016 9:13 pm

Armando,
would you be so kind to show us how to use the word spell checker with Fivewin.
Thanks in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6320
Joined: Fri Oct 07, 2005 7:07 pm

Re: Spell Checker

Postby RAMESHBABU » Sat Mar 26, 2016 1:14 am

Mr.Otto,

I use MS Word spell checker using this Code.

Code: Select all  Expand view

#include "fivewin.ch"

STATIC oWord

FUNCTION main()

LOCAL cText := "Wouldd you be soo kind to showa us how to usea the word spelll checker with Fivewin. Thank s in advaance."

MsgInfo(SpellCheck(cText))

RETURN nil

***********

STATIC FUNCTION SpellCheck(Texto)

LOCAL oDoc,oTexto
LOCAL cText:=Texto

IF .NOT. IsWord()
   MsgInfo("MS Word is not installed in your computer.")
   RETURN .F.
ENDIF


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)

*************

FUNCTION isWord()

local lSuccess:=.F.
local oWord

TRY
   oWord:= createObject("word.Application")
   lSuccess:=.T.
CATCH
   lSuccess:=.F.
END

RETURN lSuccess

***************
 


-Ramesh Babu
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: Spell Checker

Postby bpd2000 » Sat Mar 26, 2016 4:14 am

Thank you Mr. Rameshbabu
Regards, Greetings

Try FWH. You will enjoy it's simplicity and power.!
User avatar
bpd2000
 
Posts: 153
Joined: Tue Aug 05, 2014 9:48 am
Location: India

Re: Spell Checker

Postby Armando » Sat Mar 26, 2016 4:39 pm

Otto & Friends

Here is my code

Code: Select all  Expand view

STATIC FUNCTION SpellCheck(Texto)
    LOCAL oWord,oDoc,oTexto
    LOCAL cText := Texto

    TRY
        oWord:=TOleAuto():New( "Word.Application" )
    CATCH
        MsgInfo("MS-WORD no esta instalado en esta PC !",oApp:cAplicacion)
        RETURN(Texto)
    END

    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) // si cancelamos en el chequeo de ortografia, nos devuelve una cadena vacia
        Texto := cText
    ENDIF
RETURN(Texto)
 


Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3209
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Spell Checker

Postby dtussman » Tue Mar 29, 2016 6:13 pm

looks interesting, but how long does this process take? Opening Word takes forever on my computer.
dtussman
 
Posts: 97
Joined: Sat Jun 06, 2015 6:57 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 68 guests