Word instance is not closed even after closing the word document

V

Vin

I'm opening and printing multiple Word documents from SAP application.
Updation of the fields and printing is via the add-ins written in VB. In
2003, when we do this for multiple documents, document gets opened and then
printed. Second document uses the existing instance and then prints.

But in 2007, when we are doing for multiple documents, though first document
is opened, printed and closed, when second document is opened it shows the
instance/ document as Document2, prints and closes it. No instance of word is
opened. When third document is opened it shows as 'Dcouemnt 3'...I suspect
temporarily it i shaving the instances. In this case because of this data is
not updated correctly and printed. Code is been used to call the method close
the word document after printing is completed.

If we do 'Exit word' issue doesn't happen. so can you please tell me why it
is behaving differently in 2007? How to correct it?
 
D

Doug Robbins - Word MVP

We would need to see the code to be sure, but is your code releasing the
instance of Word by setting it to Nothing?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top