Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to End Process Question

Status
Not open for further replies.

efrost2

Programmer
Jul 18, 2001
50
US
Hello all - I am calling MS Word through ASP (eg CreateObject), however each time I do this a winword.exe process shows up in processes in Windows task manager. When I try to 'End Process' I get the Warning messeage then when I click YES I get an 'Unable to terminate process - The operation could not complete. - Access is denied.' I am logged on as administrator. Any suggestions.
Thanks
John
 
Hello,
It is normal winword.exe to be shown in processes.
Other Word.Application object cannot be handled.
Be sure that release objects in your ASP code and Quit Application.
Somethink like:

Dim objWord
Set objWord=CreateObject("Word.Application")
'Some activities
objWord.Documents.Add
objWord.Selection.TypeText strText
objWord.Visible = true
'If above line is commented nothing will be visible
objWord.PrintOut
objWord.Quit 'Quit application
Set objWord = Nothing 'Release object

Success!
D.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top