I have designed a Editor with basic format options and Spell check option. The spell check code is as follows
Word.Application app = new Word.Application();
app.Visible=false;
object template = Missing.Value;
object newTemplate = Missing.Value;
object documentType = Missing.Value;
object visible = true;
object optional = Missing.Value;
Word._Document doc = app.Documents.Add(ref template, ref newTemplate, ref documentType, ref visible);
doc.Words.First.InsertBefore (hdnVal.Value );
Word.ProofreadingErrors we = doc.SpellingErrors;
iErrorCount = we.Count; doc.CheckSpelling( ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional, ref optional);
object first = 0;
object last = doc.Characters.Count -1;
string strTemp = doc.Range(ref first, ref last).Text;
doc.Close(ref saveChanges, ref originalFormat, ref routeDocument);
app.Quit(ref saveChanges, ref originalFormat, ref routeDocument);
The problem is that, when i execute it in my system, its working fine. But when i access the same URL from another machine, the spell check dialog is not opening but , its opening in the parent system. What could be the problem? Kindly help me Thanks
~VSree