Re: Problem in using word object
- From: "Drew Wildner" <dwildner@xxxxxxxxxx>
- Date: Tue, 10 Jan 2006 16:12:02 -0500
Make sure to release all unmanged resources in a finally block and handle
all errors. You will see it disappear from the list of running processes.
If it does not, I'd verfiy that you do not have an unhandled exception.
D
try{
//All your previous spellchecking
}finally {
Word_App.Quit(ref falseRef, ref missing, ref missing);
System.Runtime.InteropServices.Marshal.ReleaseComObject(Word_App);
}
D
"Gomathi" <gomathi@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uPTvx0EEGHA.1032@xxxxxxxxxxxxxxxxxxxxxxx
> hi all,
>
> In my windows application, i added a word object reference.
> Using word object, i'm doing spell checking. After spell checking, i
> quited the word object. But still its running in task manager and
> utilizing 100% in CPU. How to solve this?. I attached the code which i
> used in my application.
>
> string strVal = "Good";
> Word.Application oWord = new Word.Application();
> object missingType = Type.Missing;
>
> bool blnSpell = oWord.CheckSpelling(strVal,
> ref missingType, ref missingType, ref missingType,
> ref missingType, ref missingType, ref missingType,
> ref missingType, ref missingType, ref missingType,
> ref missingType, ref missingType, ref missingType);
> if(blnSpell)
> label3.Text = "Correct";
> else
> label3.Text = "InCorrect";
>
> oWord.Quit(ref missingType,ref missingType,ref missingType);
>
> My ambition is to use spell check in my application. Is there is any other
> way to do this?
>
> Thanks in advance.
> Regards,
> Gomathi
>
.
- References:
- Problem in using word object
- From: Gomathi
- Problem in using word object
- Prev by Date: Re: Newbie needs help with designer and a custom user control.
- Next by Date: Re: new indian sex forum online
- Previous by thread: Problem in using word object
- Next by thread: Why does the default Deserializer crash on array index expressions?
- Index(es):
Relevant Pages
|