![]() ![]() One Boolean parameter is passed to determine if the spell checker or grammar checker is invoked. This subroutine is called from the click events of the btnSpellCheck and btnGrammarCheck. The next thing to do is create a subroutine for calling the spell checking component. This will provide for the necessary error handling further on in the code. The first thing to do is add the following Imports statement: Imports System. Select this object by clicking on the Select button and then on the OK button. There will be a version number associated with it, in my case (Word 2002), I see version 10.0. Scroll down the list until you find Microsoft Word Object Library. and then click on the COM tab in the Add Reference dialog box. Right click on References under the Windows Application in the Solution Explorer. A COM wrapper is required to import the required spelling and grammar components. The Object Libraries for Microsoft Word are not written natively in. Add controls to the Form with the following settings: Type The Form will contain two buttons and one TextBox control. The code in this article has been successfully tested with Microsoft Word 97, 2000, XP and 2003 Beta 2.Ĭreate a new Windows Application project in Visual Studio.NET. It's quite easy to do, and only requires that the client application have Microsoft Word installed. This article will demonstrate how to add these functions to a Visual Basic.NET Windows Form project. ![]() Users will greatly appreciate these features and in addition, applications will appear more professional as they mimic popular programs like MS Word. Many applications can be enhanced by including spelling and grammar checking capabilities. Article source code: spellcheck.zip Introduction ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |