in VBA or VB6...close word when no pending print jobs left

K

Kevin Mitchell

In VBA or VB can someone please tell me how to check my previously created
word application object to see if there are any pending print jobs?

wrdApp.Visible = False

'check for pending print jobs here and then if no pending print jobs
then quit

wrdApp.Quit
Set wrdApp = Nothing

Basically what I am doing is print a word report and then closing the report
imediately afterwards. The problem is that the print job is still pending
when I try to close word so I need to check if there is a print job pending
before closing and then close the document once there are no print jobs
pending.

Thanks in advance!
Kevin
 
K

Kevin Mitchell

I disabled background printing and that fixed my prob!
no help required! thanks!
 

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