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 1 1077
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Xarky |
last post by:
Hi,
I am writing a linked list in the following way.
struct list
{
struct list *next;
char *mybuff;
};
|
by: mharris |
last post by:
I need help with merging two Word documents into one through C#
code. The problem isn't so much getting the documents put into one as
it is maintaining the appropriate formatting, or rather...
|
by: Raj Singh |
last post by:
I am facing a problem with Visual C# 2003 and MS Word XP. I am using a
customized template for Word and in that template I have defined some
bookmarks. I am trying to create a Word document based...
|
by: Handy Mulia |
last post by:
I am trying to open the content of a WORD file from C#.NET which resides
in the REMOTE SERVER, however I get an error:
"System.Runtime.InteropServices.COMException: Server execution failed"
when...
|
by: Simon Verona |
last post by:
I have a problem with automating MS Word through vb.net
My code is :
Dim objword As new Word.ApplicationClass
Try
objWord.Documents.Open(letterfile)...
|
by: Al_P via DotNetMonster.com |
last post by:
I have:
Win2K
Office2000
Working in VB.Net (2003)
My .Net project has a reference to Word 9.0
Instantiating things in a simple and straightforward manner:
Dim word as Word.Application
Dim...
|
by: Ronald S. Cook |
last post by:
Sorry for the previous duplicate posts.
I'm referencing and using the Microsoft Word 11.0 object model from within
my VS 2005 C# Windows app.
The following lines...
objWordDoc.Close(ref...
|
by: TPJ |
last post by:
Help me please, because I really don't get it. I think it's some stupid
mistake I make, but I just can't find it. I have been thinking about it
for three days so far and I still haven't found any...
|
by: leiz |
last post by:
Hi,
I am using COM to automate Word. In the main thread of my program, I
store all the Document objects from Application.Documents. In one event
handler (the event generated by Word), if i get...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |