Does anyone know how I can use the microsoft DLLs to count the number of words in a text box and also do a spell check and correction on the text. It is a multi-line text box.
You can use third-party tools like an ActiveX EXE to do this. If you have MS Word installed, then you are in luck. Just create an instance of Word, put the textbox contents into Word document and use SpellCheck method and other properties to get the info.
If you haven't Word installed, you can do the word counting using a piece of code, that increments a counter whenever it reaches a blank (chr(32)). Just note not to count the multiple attached blank characters.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.