Application object.

Posted on 2004-08-23
Last Modified: 2010-05-02
Hi experts,

I am using getObject and CreateObject to create an instance of Word.Application
i need to invoke the word application open a document, create table of contents, merge a title page,
create different header footer for title page and different pagenumbering style for TOC, I have to do this a few times on different documents. I have achieved most of it, now problem i am facing is that when i try to create Application.Word object after Quiting the word for the first time it seems to go thru, but when i access some objects it throws automation server unavailable error. does anybody here has solutions or know why this is happenning?
Question by:sunilramu
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 15

Expert Comment

ID: 11871672
Word has not terminated properly.

Use quit method and set object to nothing when you are done with the object.

Author Comment

ID: 11872121
Sorry I didnt mention, I did use qui and set the application object to nothing, but doesnt seem to work!

Expert Comment

ID: 11884292
What's the exact error message, and what is the line which causes it?
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 15

Expert Comment

ID: 11885261

In the tasklisk "do you still see word application after you use quit and nothing.?"

Answer is probably yes, but please  double check this is the case.


Accepted Solution

LastToKnow0 earned 500 total points
ID: 11895105
Are you using .net?  .net seems to have some problems releasing COM objects under certain conditions.


Author Comment

ID: 11906542
Error Number : 462
Error Description: The Remote Server Machine does not exist or is unavailable .

Author Comment

ID: 11906549
BTW its a VB6 Application

Author Comment

ID: 11906581;EN-US;188546

i tried the alternative suggested by MS, doesnt seem to work!

Author Comment

ID: 12180045
The Problem was that i was using inchestopoints and it seemed to fail on that every time, now that i am hardcoding margins everythings seems to work, thank you all ....

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question