Solved

Application object.

Posted on 2004-08-23
9
180 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now