I am using a vb script to change the default printer, print a report, and set the default printer back to the original printer.
The printer I am trying to print to is a remote network printer that is connected through a Firebox. When the print job goes to print, the printer is idle and takes about thirty seconds to a minute to get to 'ready' status. Unfortunately, the print job usually times out.
Does anyone know how to have the script wait until the printer is 'ready' to fir the print job?
Here is the code I used to set the default printer (in case it helps):
Thanks in advance!
The printer I am trying to print to is a remote network printer that is connected through a Firebox. When the print job goes to print, the printer is idle and takes about thirty seconds to a minute to get to 'ready' status. Unfortunately, the print job usually times out.
Does anyone know how to have the script wait until the printer is 'ready' to fir the print job?
Here is the code I used to set the default printer (in case it helps):
Code:
set wshnetwork = createobject("wscript.network")
wshnetwork.setdefaultprinter "\\[i]servername[/i]\[i]printername[/i]"
Thanks in advance!