Printer Queue

H

Hammer Rockwell

Hello All,

I currently have a DB setup that lists pdf documents and using Alex Dybenko
and help from dymondjack it loops thru a queue that is set by the user to
print. My problem is now, that the end user would like to see the number of
pdf's the printer has in queue (ie: Xfilename 1 0f 20 ). Is there any way to
get the data from the windows printer queue? I really just need to be set in
the right direction.

Thanks,
Hammer
 
D

dymondjack

All this information is handled by the windows spooler. You can search
around for some API that might be able to give you the number of jobs in
queue, but I don't know any off the top of my head. Good luck... working
with the spooler is a nightmare, IMHO (just try cancelling a print job and
see how well that goes if you need an example).

Try seaching for a VBA API for Spool(er) services.

hth
--
Jack Leach
www.tristatemachine.com

- "Success is the ability to go from one failure to another with no loss of
enthusiasm." - Sir Winston Churchill
 
H

Hammer Rockwell

Hmmm... well I got to thinking the code uses strcmd to use acrobat and
basicly I am sending a pdf to print X number of times individualy. when I
should be saying print x file copies this many times. < Very confusing I
know.

Is there way to add a parameter for the strcmd that opens the PDF document
to say print x number of copies? This will allow the display for the printer
to say 1 of X.


Thanks,
Hammer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top