Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

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?
0
sunilramu
Asked:
sunilramu
1 Solution
 
unknown_routineCommented:
Word has not terminated properly.

Use quit method and set object to nothing when you are done with the object.
0
 
sunilramuAuthor Commented:
Sorry I didnt mention, I did use qui and set the application object to nothing, but doesnt seem to work!
0
 
nichiaCommented:
What's the exact error message, and what is the line which causes it?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
unknown_routineCommented:
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.

0
 
LastToKnow0Commented:
Are you using .net?  .net seems to have some problems releasing COM objects under certain conditions.

see:  http://support.microsoft.com/default.aspx?scid=kb;en-us;305823&Product=NETFrame
0
 
sunilramuAuthor Commented:
Error Number : 462
Error Description: The Remote Server Machine does not exist or is unavailable .
0
 
sunilramuAuthor Commented:
BTW its a VB6 Application
0
 
sunilramuAuthor Commented:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;188546

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now