This section describes how your windows forms or ASP.NET application which uses Aspose.Editor control can be extended with spell checking functionality.
Support for spell checkers
Aspose.Editor control provides demo project which implements adapter class for Keyoti RapidSpell Desktop for .NET control (version 3.7.0). If you have this product installed on your system you can enable spell checking by adding single line of code to your project (see next chapter).
Other spell checker controls could be integrated with Aspose.Editor by implementing corresponding wrappers if supported by spell checker component.
Keyoti RapidSpell Adapter
Integration of the third-party spell checker control with Aspose.Editor technically comprises of the following steps:
- Build adapter class for specific spell checker component,
- Reference the adapter assembly from the application project,
- Invoke the appropriate method on the adapter interface to enable spell checking functionality in the application, or configure application to load spell adapter as plug-in module.
For the Keyoti RapidSpell Desktop for .NET control this adapter is already implemented and available among the demos in C:\Program Files\Aspose\Aspose.Editor\Demos\KeyotiSpellAdapter folder (by default) after Aspose.Editor is installed. Depending on the .NET version used to build your application and which Aspose.Editor control is used there are four projects in the folder which share same source files but define different build options.
The output of every project is assembly which exposes KeyotiRapidSpellAdapter class. There are two ways to integrate this into the application. First, desktop application can reference this assembly and invoke Install static method of this class right after editor control instance is created. Second, desktop and web applications can load spell adapter as a plug-in module, refer to Using plug-in modules chapter.
For the first option, here is what happens in detail:
- After editor instance is created application invokes appropriate method on the spell checker adapter,
- Adapter creates and adds custom commands to the editor control which enable spell checking functionality, and
- When document changes or when custom commands are invoked manually by user (e.g. show spell dialog) adapter takes the role of mediator between two components and help them talk to each other.
Please look through the demo applications for source code example. Demo projects are available after Aspose.Editor control is installed.
Here is the screenshot of the demo project using the Keyoti RapidSpell Desktop for .NET component through adapter:
Obtaining and licensing Keyoti RapidSpell
Keyoti RapidSpell Desktop for .NET component is a third-party product available from www.keyoti.com and requires separate purchase.
If you want to evaluate or purchase the product or have bug report, question or comment on it please contact directly to the Keyoti company.
Tips for licensing Keyoti RapidSpell Desktop for .NET:
- You have to include "Licenses.licx" file as embedded resource to main (startup) project of your application.
- If you build desktop application which uses desktop adapter then include "Licenses.licx" file into your (startup, .exe) project.
- If you build web (ASP.NET) application which uses client adapter then include "Licenses.licx" file into the client adapter project.
The content of the Licenses.licx file for .NET 1.1 dlls is following:
Keyoti.RapidSpell.RapidSpellAsYouType, Keyoti.RapidSpell
Keyoti.RapidSpell.RapidSpellDialog, Keyoti.RapidSpell
The content of the Licenses.licx file for .NET 2.0 dlls is following:
Keyoti.RapidSpell.RapidSpellAsYouType, Keyoti.RapidSpell.NET2
Keyoti.RapidSpell.RapidSpellDialog, Keyoti.RapidSpell.NET2