Detecting Print Jobs when quitting Word 
Author Message
 Detecting Print Jobs when quitting Word

Seems like this should be a simple one, but I can't find
the right Word property for what I need.  Here's the
deal...

I have a bunch of word docs that get created and saved
automatically through vb/vba and word macros.  When the
process is done, my application sends a number of word
docs to the printer, then closes Word.  But, often I get a
message from Word telling me that if I quit now, I'll lose
my pending print jobs.

What I would like to do is query some property in Word
until it says "ok, there aren't any jobs being sent to the
printer".  Then I can gracefully close Word without fear
off getting this message.

If it matters, I'm using Word in the Office 97 bundle.

Any ideas?

Thanks much.

-jd



Sat, 20 Mar 2004 23:27:05 GMT  
 Detecting Print Jobs when quitting Word
Hi, Jeff,

In the ActiveDocument.PrintOut method, set the parameter Background:=False.
Then control won't return to your macro until the print job completes.

--
Regards,
Jay Freedman
Microsoft Word MVP        Word MVP FAQ site: http://www.mvps.org/word


Quote:
> Seems like this should be a simple one, but I can't find
> the right Word property for what I need.  Here's the
> deal...

> I have a bunch of word docs that get created and saved
> automatically through vb/vba and word macros.  When the
> process is done, my application sends a number of word
> docs to the printer, then closes Word.  But, often I get a
> message from Word telling me that if I quit now, I'll lose
> my pending print jobs.

> What I would like to do is query some property in Word
> until it says "ok, there aren't any jobs being sent to the
> printer".  Then I can gracefully close Word without fear
> off getting this message.

> If it matters, I'm using Word in the Office 97 bundle.

> Any ideas?

> Thanks much.

> -jd



Sun, 21 Mar 2004 02:39:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Quitting Word After Printer Completes Job

2. How to quit word while it′s printing

3. Detecting print jobs

4. DETECTING COMPLETION OF PRINT JOB

5. need help on detecting the end of print job

6. Detecting Print Jobs

7. Detecting Print Jobs on Local Machine

8. Printing word docs in Single Job

9. closing word cancels print job

10. Combining Word objects generated from VB program into one spooled print job

11. Combining Word documents into 1 print job

12. WHY PROGRAMMERS QUIT THEIR JOBS IN 18 MONTHS OR LESS

 

 
Powered by phpBB® Forum Software