Solved

non-Dictionary word

Posted on 2014-10-16
1
99 Views
Last Modified: 2014-10-31
Hi,

could you please help me the bellow questions......

How to get non-dictionary word from a word document programmatically?

and check the string is dictionary word or non-dictionary word ?
0
Comment
Question by:mannevenu26
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 51

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40386177
Hi,

pls try

using System;
using Word =  Microsoft.Office.Interop.Word;

class Program
{
    static void Main()
    {



        int myErrors = 0;
        // Open a doc file.
        object oMissing = System.Reflection.Missing.Value;
        Word.Application application = new Word.Application();

        application.Visible = true;
        Word.Document document = application.Documents.Open("c:\\YourFile.docx");

        foreach (Word.Range wd in document.Words)
        {
            myErrors = wd.SpellingErrors.Count;
            if (myErrors > 0)
            {
                Console.WriteLine("{0} is not in the spelling Dic ", wd.Text);
            }

        }

        application.Quit();
    }
}

Open in new window

Regards
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question