Runtime error with MS Word documents

A

Adele Hebl

We have an application written in Visual Basic using
Office Word to print documents. After using the
application for a while and printing documents, the
customer will print a document and get an error message
with runtime error 2147417848 (80010108) CAISDOCGe2nDLL
the object has disconnected from its client.

MS 2000 Network
MS 2000 for Professionals on desktops
MS Office 2000 on desktops
Database is in SQL networked server
 
J

Jezebel

It usually means your VB app is trying to reference a document that is no
longer open. At its simplest:

Dim pWordDoc as Word.Document
Set pWordDoc = WordApp.Documents.Open(MydocName)
Word.Documents(MyDocName).Close

x = pWordDoc.Name <==== This will cause the error you're seeing.

In other words, it's a good old-fashioned bug in the VB app.
 

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