473,769 Members | 6,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

killing winword.exe process - ASP and Office 2003

Howdy.

I'm having difficulty getting winword.exe processes to die on our
development server when using
SET objWord = CreateObject("w ord.application ") from an .ASP page.

This problem exists on our development server only as we are still
using Office 2000 components in production. No probs in production with
the current code which has been in use for a couple of years now.

I have to get these ASP pages working with word 2003 to avoid a rewrite
of a few applications.

I've tried using objWord.Quit and setting the object to "Nothing" but
it has no effect on the running process on the server.

Both development and prod servers are Win 2003 Server.

Any and all ideas are appreciated.

James.

Jul 11 '06 #1
3 4058
I hate it when I find an answer a minute after posting :-)

The code had been modified and the "false" clause was missing from
"objWord.qu it".

So... objWord.quit False

fixed my issue.
James wrote:
Howdy.

I'm having difficulty getting winword.exe processes to die on our
development server when using
SET objWord = CreateObject("w ord.application ") from an .ASP page.

This problem exists on our development server only as we are still
using Office 2000 components in production. No probs in production with
the current code which has been in use for a couple of years now.

I have to get these ASP pages working with word 2003 to avoid a rewrite
of a few applications.

I've tried using objWord.Quit and setting the object to "Nothing" but
it has no effect on the running process on the server.

Both development and prod servers are Win 2003 Server.

Any and all ideas are appreciated.

James.
Jul 11 '06 #2
You're probably going to have more issues:

http://support.microsoft.com/default...b;en-us;257757

James wrote:
I hate it when I find an answer a minute after posting :-)

The code had been modified and the "false" clause was missing from
"objWord.qu it".

So... objWord.quit False

fixed my issue.
James wrote:
>Howdy.

I'm having difficulty getting winword.exe processes to die on our
development server when using
SET objWord = CreateObject("w ord.application ") from an .ASP page.

This problem exists on our development server only as we are still
using Office 2000 components in production. No probs in production
with the current code which has been in use for a couple of years
now.

I have to get these ASP pages working with word 2003 to avoid a
rewrite of a few applications.

I've tried using objWord.Quit and setting the object to "Nothing" but
it has no effect on the running process on the server.

Both development and prod servers are Win 2003 Server.

Any and all ideas are appreciated.

James.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 11 '06 #3
Hi Bob.

Well as it turns out, I do have another issue. But, not one of those
mentioned in the MS support article.

I suspect its a caching issue of sorts. So I may as well blurt it out
here in the hope that someone else has come accross it.

The word documents I'm opening for a merge are a mixed bag of various
word versions going back to the Office 97 version of word.

The only way I can open these older files is to save them as Office
2003 word docs and then rename them. If I don't rename them, I just
can't open them and the winword.exe process just hangs leaving my app
with a blank screen.

I'm not expecting an answer but I'm bored with trying :-)

Bob Barrows [MVP] wrote:
You're probably going to have more issues:

http://support.microsoft.com/default...b;en-us;257757

James wrote:
I hate it when I find an answer a minute after posting :-)

The code had been modified and the "false" clause was missing from
"objWord.qu it".

So... objWord.quit False

fixed my issue.
James wrote:
Howdy.

I'm having difficulty getting winword.exe processes to die on our
development server when using
SET objWord = CreateObject("w ord.application ") from an .ASP page.

This problem exists on our development server only as we are still
using Office 2000 components in production. No probs in production
with the current code which has been in use for a couple of years
now.

I have to get these ASP pages working with word 2003 to avoid a
rewrite of a few applications.

I've tried using objWord.Quit and setting the object to "Nothing" but
it has no effect on the running process on the server.

Both development and prod servers are Win 2003 Server.

Any and all ideas are appreciated.

James.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8785
by: Bhavya Shah | last post by:
Hello there, I am facing a strange problem. I use office converters for converting Microsoft Word documents to html in my application. I use office automation for the entire process. I open the Word file in invisible mode for conversion to html. But I face a problem after the conversion. The WinWord.exe does not quit. I use the following code for quitting. objWord.quit();
0
1409
by: Just D. | last post by:
Guys, I'm writing the Windows Application and one of the ideas is to use a RichText field to store/show some formatted text, probably with pictures. The problem is that this RichEdit control is very poor and I'd like to use WinWord for significant editing. I also don't want to exclude the RichEdit control for some light changes of the same text. So the problem is to start WinWord so that the main application should be frozen until...
3
11750
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these suggestions. 1) Check the file permissions for the document or drive. 2) Make sure there is sufficient free memory and disk space. 3) Open the file with the Text Recovery converter." The document that I want to display is on my PC and was created by...
2
4510
by: Dean Slindee | last post by:
The code below is being used to launch WinWord.exe from a VB.NET program. Word launches, but displays this error message: "Word has experienced an error trying to open the file. Try these suggestions. 1) Check the file permissions for the document or drive. 2) Make sure there is sufficient free memory and disk space. 3) Open the file with the Text Recovery converter." The document that I want to display is on my PC and was created by...
8
2139
by: Just D. | last post by:
All, What exactly should we do to get WinWord working in asp.net? I wrote a class library and it works just great in WinApp. When I switched to the WebApp I can't get the object because of permissions. But the problem is that I added all required permissions first - using Component Services, second - to NTFS permissions. It still doesn't work as expected. I saw many articles on the Internet, the best ones were about DCOMCNFG.EXE and its...
1
1959
by: Danny De Koster | last post by:
Hi all, Is there a way to create an xml-file and then read it in winword? Where can I find information on this topic?? Thanks for any tips Danny
0
1041
by: TheMattRay | last post by:
I am trying to add an annotations overlay to MS Word (using the InkOverlay class provided by the Microsoft.Ink namespace) in VB.NET. To bind the InkOverlay to Word (or antyhing for that matter), it accepts a handle (InkOverlay.Handle) of the window. I have tried using the PIAs for office to start Word (word.application), but can't find a way to get the window handle from it to attach to the InkOverlay object. Lately I have been using the...
2
2803
by: Dean Slindee | last post by:
Using this statement to utilize the spell checker in WinWord: WinOffice.clsWord.SpellChecker(txtNote.Text) 'this does not work because no main window is displayed 'Dim proc = Process.GetProcessesByName("winword") 'For i As Integer = 0 To proc.Count - 1 ' proc(i).CloseMainWindow() 'Next i 'this closes all WinWord processes silently (a little overkill):
2
3346
ajester
by: ajester | last post by:
I need WinWord to look like it's being executed from the correct path: C:\Program Files\Microsoft Office\Office12\WinWord.exe when in reality it's being launch from a Java app using the path C:\Program Files\Microsoft Office\Office11\WinWord.exe. A program (Java) from the Internet (so it only knows the configuration it has stored) launches 'C:\Program Files\Microsoft Office\Office11\Winword.exe' and sends it a macro to build a form on the...
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8879
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.