Skip to main content

[archive] Polar SpellChecker

  • June 14, 2010
  • 13 replies
  • 0 views

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!

13 replies

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
When you have installed the new activex, you should use the AxDefgen.exe to generate a new definition file (see documentation). When you recompile you app using this .def file, you should be using the new version.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
Thanks. I created the new .def file, but when I generate, I get a "Failed to Load Library Type" error. I'm using acubench.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
There is a sample of spellchecker in the sample/activex folder, just load the spellchecker.psf into your AcuBench project. Once you've installed Polar, use ActDefGen and highlight the Polar spellchecker control in the list box (see attached screenshot), and in the entry-field create Spellchecker.def. Make sure where ever you create Spellchecker.def, that your AcuBnech project can find it. You should now be able to generate, compile and execute.
:)

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
screenshot

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
Thanks Dilbert. I was able to get that sample program working, eventually I'll need a non-trial version, so I installed the newer trila version from the polarsoftware website. I ran the Axdefgen against the new component to create my new .def file. The problem is when generationg the "spellchecker.psf" I get a "failed to load library type". I have a feeling it has to do with the new license key. When I open the screen in AcuBench I get the message "design-time license for ocx.spellchecker control missing. loading control with place holder only"

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
Since you have a new licensed spellchecker, create a new screen, in the screen component portion of AcuBench, right click on ActiveX components and then find your Polar spellchecker and select it. Now you can select it from the ActiveX components and add on to your new screen. Once you have that, copy that one from the new screen to the original screen, get the properties and events taken care of, and then delete the original one.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
Thanks! That did it.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
In the sample I do the following:
Modify SpellCheckerControl CheckText(DataEntryField-Value, " ")
giving DataEntryField-Value.

It works fine, the spellchecker software runs, but there are options that I want to turn off (uncheck). One would be ignoring words in upper case. Can I do that with a cobol statement prior to the "checktext" or do I need to change something in Polar software.

Here's the statement in the spellchecker.def file:

* CheckText
* method CheckText
METHOD, 35, @CheckText,
"BSTR" @Text, TYPE 8,
"VARIANT*" @ExitStatus, TYPE 16396
RETURNING "BSTR", TYPE 8
* IgnoreWordsInUppercase
* property IgnoreWordsInUppercase
PROPERTY-GET, 37, @IgnoreWordsInUppercase
RETURNING "boolean", TYPE 11
* IgnoreWordsInUppercase
* property IgnoreWordsInUppercase
PROPERTY-PUT, 37, @IgnoreWordsInUppercase,
"boolean (Property_Value)", TYPE 11
* IgnoreWordsWithNumbers
* property IgnoreWordsWithNumbers
PROPERTY-GET, 38, @IgnoreWordsWithNumbers
RETURNING "boolean", TYPE 11
* IgnoreWordsWithNumbers
* property IgnoreWordsWithNumbers
PROPERTY-PUT, 38, @IgnoreWordsWithNumbers,
"boolean (Property_Value)", TYPE 11
* AlwaysSuggest
* property AlwaysSuggest
PROPERTY-GET, 36, @AlwaysSuggest
RETURNING "boolean", TYPE 11
* AlwaysSuggest
* property AlwaysSuggest
PROPERTY-PUT, 36, @AlwaysSuggest,
"boolean (Property_Value)", TYPE 11

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
Ignoring Upper case is a function of the control,

property-get are INQUIRE types of properties

property-put are MODIFY types where your COBOL program can modify the control to use an additional property

PROPERTY-PUT, 37, @IgnoreWordsInUppercase,
"boolean (Property_Value)", TYPE 11

Modify SpellCheckerControl @IgnoreWordsInUppercase

I would do this before the CheckText function

You cannot change the functionality the spellchecker control unless you purchase the source from Polar and build a new ocx.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
That did it: Modify SpellCheckerControl @IgnoreWordsInUppercase ("0") turned it off.

Thanks! I really appreciate it.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
I purchased the non-trial version of spellchecker, installed it on my development server and all worked fine. I then installed the software on my production server and moved the application and I get an "invalid handle" when opening the dictionary.

Modify SpellCheckerControl
OpenDictionary("\\\\onlinenfs\\projetcs\\SpellUS.lex")

Any ideas what could cause this? Thanks.

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
I take it that you registered the Polar spellchecker OCX on the server.

If so, it appears that Spellchecker has a path to where the dictionary may be located. Have you confirmed that the path is correct and that the dictionary is in the appropriate directory?

[Migrated content. Thread originally posted on 10 June 2010]

I found an old sample program that used Polar Spellchecker and was able to get it to work. It's the first activex control I've used, and need to download Polar's current spellchecker software (trial version first). Is there anyone out there that currently uses it? Once I install the new trial version, how do I point the existing acyivex control to the new software? Thanks!
Remember registered versions may require a license. This can be provided as a part of the declaration of the activex in the screen section. See docs :-)

Invalid handle indicates you were unable to create the ActiveX, if you had used a declarative section on the component, you should have gotten an exception on it. If the component rejects connection because of missing license key, you will end up with an invalid handle.