Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with Word component for spell checking

Problem with Word component for spell checking

Scheduled Pinned Locked Moved ASP.NET
helpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vsree
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups