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?
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?
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Error Number : 462
Error Description: The Remote Server Machine does not exist or is unavailable .
Error Description: The Remote Server Machine does not exist or is unavailable .
ASKER
BTW its a VB6 Application
ASKER
http://support.microsoft.com/default.aspx?scid=kb;EN-US;188546
i tried the alternative suggested by MS, doesnt seem to work!
i tried the alternative suggested by MS, doesnt seem to work!
ASKER
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 ....
Use quit method and set object to nothing when you are done with the object.