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
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
FYI: WinterTree Spell Checker
Regards ... 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