Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Application object.

Posted on 2004-08-23
9
Medium Priority
?
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
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.

 
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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

596 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