This is a migrated thread and some comments may be shown as answers.

Server-side spell check

1 Answer 109 Views
Spell
This is a migrated thread and some comments may be shown as answers.
Jon A.
Top achievements
Rank 1
Jon A. asked on 20 Jul 2008, 04:43 PM
Hi,

Is it possible to perform a spell check without user interaction and entirely on the server side?  I'd like to call a method that runs a spell check on a segment of text, and then return a list of misspelled words  Is this possible?

Thanks

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 22 Jul 2008, 10:17 AM
Hi Jon,

Please review the following code that demonstrates how to achieve the desired behavior:
protected void Page_Load(object sender, EventArgs e)  
{  
    SpellChecker spell = new SpellChecker(@"C:\Projects\RadEditor Pojects\RadEditorPrometheus 8.1.SP2\App_Data\RadSpell");  
    spell.Text = "Textt to Checkk";  
    spell.CheckText();  
    SpellCheckErrors errors = spell.Errors;  
    foreach (SpellCheckError error in errors)  
    {  
        Page.Response.Write(error.MistakenWord.ToString()+"</br>");  
    }  

I hope this helps.

Sincerely,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Spell
Asked by
Jon A.
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or