By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,730 Members | 1,153 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,730 IT Pros & Developers. It's quick & easy.

Problem in using word object

P: n/a
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
Jan 3 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Gomathi,

try making use of

System.Runtime.InteropServices.Marshal.ReleaseComO bject(object);

Also you might have a look at -
http://support.microsoft.com/?scid=kb;EN-US;317109

HTH.

Kaustav.

"Gomathi" wrote:
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

Jan 3 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.