1. Miguel Leeuwee
  2. PowerBuilder
  3. Tuesday, 20 March 2018

To answer a question from Neil, I've created a small sample application of how I do spell check using word.

Anyone can download it from my Google Drive using this link:

https://drive.google.com/drive/folders/153LI4Lh7935VibrHB-q9nCyHKgbOKy-y?usp=sharing

 

PB 12.6 build 4081, windows 10, word 2010 and 2016 have been tested.

No database connection is needed.

It has a datawindow and also a richtextEdit control. You can activate the spell check by typing something and pressing the F12 key or by using the command button.

If the text doesn't contain anything doubtful, the spell check doesn't show. After checking the text, you have to change some text for it to work again on the same field.

There's still a flickering of the window caused by the activate and setting (in)visible from the code. I still have to work on that. (on PB 2017 that doesn't seem to happen).

Regards,

MiguelL

Neil Sutter Accepted Answer Pending Moderation
0
Votes
Undo

Thanks Miguel

I'll give it a try. I tried some of the answers and logic previously posted, but...no joy. Unfortunately had to revert back to an old 3rd-party solution. Now that I've released the next version of my application, I'll have some time to try out your solution. 

Appreciate your staying with this. 

Is this a great forum, or what!!!

Neil

 

Comment
There are no comments made yet.
  1. Wednesday, 28 March 2018
  2. PowerBuilder
  3. # 1
Miguel Leeuwe Accepted Answer Pending Moderation
0
Votes
Undo

Just tested on pb 2017: flickering also happens.

Comment
There are no comments made yet.
  1. Wednesday, 21 March 2018
  2. PowerBuilder
  3. # 2
René Ullrich Accepted Answer Pending Moderation
0
Votes
Undo

Nice example!

I have also a flicker with PB 2017. I guess its because of activation of Word window (of_activetebywintitle).

Comment
Thanks René, yes the "flicker" is probably not easy to resolve (unless using pb2017).



Right now I'm starting to feel more and more uncomfortable about using OLE, since it's more and more likely not going to be supported in some future. Also applications like client-installed-Outlook might not be available on all of our clients. For now there's office 2016, but it might be all "cloud" in a few years. Starting to look if things can be done using OpenXML or other newer API.



Any recommendation?



regards,



Miguel

  1. Miguel Leeuwe
  2. Wednesday, 21 March 2018
Hi Miguel;



  FYI: WinterTree Spell Checker



Regards ... Chris



 



 

  1. Chris Pollach
  2. Wednesday, 21 March 2018
Hi Chris,



Yes I know .... thanks Chris. There's quite a few (free) and open souce options out there. I've looked at lots of them and also WinterTree in the past and am not so sure if that one allows to use Word dictionaries. The Hunspell, ASpell, etc. basing most of their dictionaries on the OpenOffice ones. Great stuff, but my ... boss doesn't like any list with suggested words if it's not exactly what shows in Word (the problem is that some abreviations and other words in OpenOffice are real words but he just doesn't know them so doesn't like them).



Now I did see that Aspell (used as a plugin in Notepad++ for example), would allow to import an exported Word dictionary (and probably others), so when I have some time I'll try to do that little job, to get some real nice spellchecking (grammar included), instead of popping up office and obliging our client to have office).



regards,



MiguelL

  1. Miguel Leeuwe
  2. Wednesday, 21 March 2018
There are no comments made yet.
  1. Wednesday, 21 March 2018
  2. PowerBuilder
  3. # 3
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.