Microsoft® Windows® 2000 Scripting Guide
« Previous | Next »
After a printer has been paused, it must be resumed. This is because the paused state is a property of the logical printer and is controlled by the print server. You cannot resume a logical printer simply by turning the physical printer on and off.
Instead, printers must be resumed manually by using the Printers control panel or programmatically by using the Resume method of the IADsPrintQueueOperations interface. Until a printer has been resumed, no documents can be printed using that printer. Users will be able to submit print jobs, but those jobs will remain in the queue until the printer has been resumed.
Listing 13.12 contains a script that resumes a printer. To carry out this task, the script must perform the following steps:
Listing 13.12 Resuming a Printer
|
|
Send us your feedback | « Previous | Next » |