Solved

Application object.

Posted on 2004-08-23
9
183 Views
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?
0
Comment
Question by:sunilramu
9 Comments
 
LVL 15

Expert Comment

by:unknown_routine
ID: 11871672
Word has not terminated properly.

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

Author Comment

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

Expert Comment

by:nichia
ID: 11884292
What's the exact error message, and what is the line which causes it?
0
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!

 
LVL 15

Expert Comment

by:unknown_routine
ID: 11885261
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
 
LVL 1

Accepted Solution

by:
LastToKnow0 earned 500 total points
ID: 11895105
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
 

Author Comment

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

Author Comment

by:sunilramu
ID: 11906549
BTW its a VB6 Application
0
 

Author Comment

by:sunilramu
ID: 11906581
http://support.microsoft.com/default.aspx?scid=kb;EN-US;188546

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

Author Comment

by:sunilramu
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 ....
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

697 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