Skip to main content

[archive] How to tell when a print job has finished?

  • March 30, 2010
  • 5 replies
  • 2 views

[Migrated content. Thread originally posted on 30 March 2010]

I have a need to tell when a print job has finished.

I'm using a PDF printer and I want to copy the file, but (obviously) not until the job is complete.

Any ideas about how to do that?

5 replies

[Migrated content. Thread originally posted on 30 March 2010]

I have a need to tell when a print job has finished.

I'm using a PDF printer and I want to copy the file, but (obviously) not until the job is complete.

Any ideas about how to do that?
Hi Nigel

Don't quite know which PDF tool your using, but but we use cutepdf here.
After we close the print file (each print job is one or more invoices per customer for emailing) we use C$COPY to transfer from client to server.
If C$COPY returns a non zero value then the copy didn't work(Seems to know file is in use) and we try again

[Migrated content. Thread originally posted on 30 March 2010]

I have a need to tell when a print job has finished.

I'm using a PDF printer and I want to copy the file, but (obviously) not until the job is complete.

Any ideas about how to do that?
WIN$PRINTER has opcodes to query the spooler if a job has been finished. Obviously, if you have a large file, the driver may be busy getting around still, long after the spooler has been told the job is done. But that is as close as it gets.

[Migrated content. Thread originally posted on 30 March 2010]

I have a need to tell when a print job has finished.

I'm using a PDF printer and I want to copy the file, but (obviously) not until the job is complete.

Any ideas about how to do that?
WIN$PRINTER has opcodes to query the spooler if a job has been finished. Obviously, if you have a large file, the driver may be busy getting around still, long after the spooler has been told the job is done. But that is as close as it gets.

[Migrated content. Thread originally posted on 30 March 2010]

I have a need to tell when a print job has finished.

I'm using a PDF printer and I want to copy the file, but (obviously) not until the job is complete.

Any ideas about how to do that?
WIN$PRINTER has opcodes to query the spooler if a job has been finished. Obviously, if you have a large file, the driver may be busy getting around still, long after the spooler has been told the job is done. But that is as close as it gets.

[Migrated content. Thread originally posted on 30 March 2010]

I have a need to tell when a print job has finished.

I'm using a PDF printer and I want to copy the file, but (obviously) not until the job is complete.

Any ideas about how to do that?
Thanks Gisle, my problem is the potential lag between the job finishing spooling and the file being really there.

Shaun, thanks! I'll experiment with that. Life's pretty tough on this side of the fence, eh? ;)

(Oh, and it's your round, if I remember correctly...) :p