B
Bruce Hensley
Using a loop of vbscript code like this, I am sending large collections of
files (of different types) to print on a network printer ...
oFolder.ParseName(File.name).InvokeVerb("&Print")
It is important that they print in the order they are sent from the script.
This does not happen unless I make the script pause for a period of time
between files. I suspect this is because they are sent asynchronously and
some get through the open application-load-spool process faster.
If the files are about the same size and type, setting a pause slightly
greater than the time to print an average job seems to work. However, as
the conditions of the jobs vary, they get out of order without a large pause
(which makes all jobs take far longer than needed, and requires prediction
of an adequate pause length).
Is there a way to detect "completion" of each job sent with InvokeVerb so
that the next job can be sent when the last "completes"? I suspect that in
this sense "completion" means that it has completed spooling to the print
queue.
TIA,
Bruce
files (of different types) to print on a network printer ...
oFolder.ParseName(File.name).InvokeVerb("&Print")
It is important that they print in the order they are sent from the script.
This does not happen unless I make the script pause for a period of time
between files. I suspect this is because they are sent asynchronously and
some get through the open application-load-spool process faster.
If the files are about the same size and type, setting a pause slightly
greater than the time to print an average job seems to work. However, as
the conditions of the jobs vary, they get out of order without a large pause
(which makes all jobs take far longer than needed, and requires prediction
of an adequate pause length).
Is there a way to detect "completion" of each job sent with InvokeVerb so
that the next job can be sent when the last "completes"? I suspect that in
this sense "completion" means that it has completed spooling to the print
queue.
TIA,
Bruce