CJ,
Install Word on the server and call the spell-checker from there? How would I pass it the user input?
Thanks.
Main Topics
Browse All TopicsDoes anyone know of a .Net component for sale (or free) that will do server-side spell checking?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You have a few options, how about a web service, or a remoting object? Here is an simple web service example that checks if a word is spelt correctly....
You'll need a reference to the Microsoft Word xx.x COM object library.
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.Web.Services;
namespace WebService4
{
/// <summary>
/// Summary description for Service1.
/// </summary>
public class Service1 : System.Web.Services.WebSer
{
public Service1()
{
//CODEGEN: This call is required by the ASP.NET Web Services Designer
InitializeComponent();
}
#region Component Designer generated code
//Required by the Web Services Designer
private IContainer components = null;
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if(disposing && components != null)
{
components.Dispose();
}
base.Dispose(disposing);
}
#endregion
[WebMethod]
public bool isCorrectSpelling(string wordToCheck)
{
Word.Application newWordApp = new Word.Application();
object missing = System.Reflection.Missing.
return newWordApp.CheckSpelling(
wordToCheck, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing);
newWordApp.Quit();
}
}
}
You might find this example a bit impratical depending on volumes/users etc. Consider creating a singleton remoting object that keeps one instance of word running on the server - the web service could then call as and when required. This way the server doesn't have to keep loading and shutting down word.
hmm, perhaps I should have compiled that! The web method above isn't quite right, try this instead:
[WebMethod]
public bool isCorrectSpelling(string wordToCheck)
{
Word.Application newWordApp = new Word.Application();
object missing = System.Reflection.Missing.
bool isSpeltOK = newWordApp.CheckSpelling(
wordToCheck, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing, ref missing, ref missing,
ref missing, ref missing, ref missing);
newWordApp.Quit(ref missing, ref missing, ref missing);
return isSpeltOK;
}
www.SpellCheckSoftware.com
(advertised in the VS.NET Resource Guide)
AzraSound
Thanks for the link. I had seen the Chado product, but it's not a real .Net product.
kpkp
I doubt I'll actually implement your solution, since the idea of running Word on my server gives me the willies, but you gave a good answer and really put some work into it, so you get the points.
Thanks!
AzraSound
Thanks for the link. I had seen the Chado product, but it's not a real .Net product.
kpkp
I doubt I'll actually implement your solution, since the idea of running Word on my server gives me the willies, but you gave a good answer and really put some work into it, so you get the points.
Thanks!
Business Accounts
Answer for Membership
by: CJ_SPosted on 2002-06-30 at 09:15:31ID: 7120159
You can use the spellchecker incorporated in Word.
CJ