General information
Category:
Coding, syntax & commands
Title:
Deleting print jobs from the queue
We have an application that prints letters or envelopes to either a network printer or to a local printer. It prints them one page at a time, so if you're printing 250 letters at a time it sends 250 one page jobs as opposed to one 250 page job.
We want to add the ability to cancel printing. So if you started to print 250 letters and hit "cancel" at letter number 100 you can either let it finish the 100 or kill everything that's still in the queue.
My question is: How do I cancel everything that's in the print queue using the printers that are setup in the Windows Print Manager? I've found gplib.fll but it seems to only deal with Netware print queues. We'll not only be using networked printers but also local printers.
Is there an API function? Does anyone have an FLL that does this?
We're using VFP5 under Windows 95. Thanks.
paul
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only