Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, In my VB application I´m usi

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

In my VB application I´m using Word object model to make a document dinamically. On the first page(Template) I insert a bookmark and then I make another page, and I copy this page to the bookmark of the first page.

After that I make a new section and the proccess begins again (witch will create more pages).

Everything works fine, until I run the process again from the begining.

If I let those pages created at the first time open (stay with word instance open) the process runs well again. However if I close that Word instance and try to run the process again (always with my vb apllication running) i get this error message:

"The remote server machine does not exist or is unavailable".

Why this appens? It seems that something had stayed in memory or that something stop working in Word.

Thank you.
 
If you "closed" the instance with
objWordApp.Quit
then you must start up Word again as you did the first time.
It sounds like you did not
Set objWordApp = Nothing
after quitting and did not CreateObject or GetObject again.
Do not QUIT Word if all you want to do is close the current document and start a new one.
Am I anywhere close. You should post code for how you start word and how you "close or quit".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top