Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
After a print job has been paused, that job must be resumed before the document will be printed. You can resume the print job programmatically by using the Resume method of the IADsPrintJobOperations interface.
For the most part, the Resume method works only on print jobs that were paused before they started printing. If you pause a print job while it is printing, it is likely that the document will not actually be paused but will continue printing. If the document is larger than the print buffer, however, it is possible that only part of the document will be printed and then the print job will be paused. If a document has printed partway and then paused, resuming the print job will not cause printing to pick up where it left off. Instead, the entire document will be reprinted.
Listing 13.15 contains a script that resumes all the print jobs on a computer. To carry out this task, the script must perform the following steps:
This variable will now contain a collection consisting of all the print jobs in the ArtDepartmentPrinter print queue.
Listing 13.15 Resuming Print Jobs
|
|
Send us your feedback | « Previous | Next » |