Automatic Spell Checker in Dynamics NAV
I saw some post on mibuso about asking for a spellchecker in Dynamics NAV. I thought it would be an interesting project to implement automatic spellchecking in NAV. I decided to implement it using Add-ins. After some googling, I found that I could use MS Office Word interop classes, but as I started implementing it, I found out that it does do real-time automatic spellchecking on a textbox. The user would have to click on a button and then the code would spell check the textbox. I kept searching and found out that WPF RichTextBox control has built in spell checker. Nav addin controls are based on winform classes, and I couldn’t use WPF RichTextBoxes. Then I saw Christian’s Blog with NAV templates and it included a WPF template for data visualization. Well displaying a textbox is a visualization of data. So I built a solution using the data visualization template. The results are better than I expected.
Here is a screenshot of Item card and the description field uses my add-in and underlines misspelled descriptions. You can right click on a word and it will suggest a list of option you can select.
I believe many users will find this useful for data entry and be able to see their typos as they type. I didn’t test other languages, but I’m sure WPF RichTextBox will suggest based on windows local language settings.
I’ve attached Visual Studio Project with Source Code.
To install the add-in, you need to insert in Client Add-in table
Control Add-in Name: Dynamics.NAV.SpellChecker
Public Key Token: 48f3911b65e24838
And put the DynamicsNAV Add-In Project.dll in the addin folder.
Design the Item Card page and change the Description ControlAddIn property as shown in the image below
*This post is locked for comments