Link to home
Start Free TrialLog in
Avatar of sunilramu
sunilramu

asked on

Application object.

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?
Avatar of unknown_routine
unknown_routine
Flag of United States of America image

Word has not terminated properly.

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

ASKER

Sorry I didnt mention, I did use qui and set the application object to nothing, but doesnt seem to work!
What's the exact error message, and what is the line which causes it?
Question:

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.

ASKER CERTIFIED SOLUTION
Avatar of LastToKnow0
LastToKnow0

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Error Number : 462
Error Description: The Remote Server Machine does not exist or is unavailable .
BTW its a VB6 Application
http://support.microsoft.com/default.aspx?scid=kb;EN-US;188546

i tried the alternative suggested by MS, doesnt seem to work!
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 ....