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.
 
Top