Discussion Locked

Printer information prpblem - (VB-Word)

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a vb6 application that uses microsoft word to print a document. The first time I run the app, it works fine. On the second time, I get the following error:"Problem getting printer information from the printer"-(error 484). The printer properties can no longer be accessed immediately after Word writes the document. I've seen the standard error information from MSDN. None of these are the problem. (printer is installed, no paper jam, etc.). When I reboot, the problem is corrected. Any help would greatly appreciated. Thanks.

2 replies

by gaston nusimovich

Hi:

It seems like your VB6 routine doesn't close properly all (COM) objects after printing. Because this, it might be happening that one of these errant objects keeps an open handle to the printer and locks all further access to it. When you reboot your computer, all COM objects are destroyed, and with it, the open handle to the printer is freed as well as the access to the printer.

You should ?close? and destroy all objects in the closing section of your VB6 routine. Based on your description, this is my best educated guess on how to solve your problem.

Good luck!

This discussion is closed to new replies.